v1

latestOpenAPI 3.0.02026-08-0622087.9 KB
Departments

List students in a department

Returns all students belonging to the given department. Supports optional search by student name or email.

get/api/departments/{id}/students

Path parameters

idinteger required
Example:1

Department ID

Query parameters

searchstring
Example:john

Filter by student name or email (partial match)

Response

List of students

successboolean

Example response

{
  "success": true,
  "data": [
    {
      "id": 10,
      "user_id": 42,
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@example.com"
    }
  ]
}