API Documentation

Endpoint: /api/student/[nim]/[attribute]

This endpoint retrieves specific attributes of a student based on their NIM (student identification number).


Request

Method: GET

URL Parameters:


Response

The response will be a JSON object containing the requested attribute or an error message.

Success Response

{ "nama": "John Doe", "angkatan": "2020", "nim": "123456789", "fakultas": "Engineering", "fakultas_singkatan": "ENG" }

Error Responses

{ "error": "Invalid query parameters" }{ "error": "Invalid attribute" }{ "error": "Student not found" }