/api/student/[nim]/[attribute]
This endpoint retrieves specific attributes of a student based on their NIM (student identification number).
Method: GET
URL Parameters:
nama
, angkatan
, nim
, fakultas
, fakultas_singkatan
The response will be a JSON object containing the requested attribute or an error message.
{
"nama": "John Doe",
"angkatan": "2020",
"nim": "123456789",
"fakultas": "Engineering",
"fakultas_singkatan": "ENG"
}
{
"error": "Invalid query parameters"
}
{
"error": "Invalid attribute"
}
{
"error": "Student not found"
}