Students

Get attendance records for a student

Changed on

Retrieve all attendance records for a specific student

get/students/{student_id}/attendance

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/students/{student_id}/attendance
  • Auth: none declared

Path parameters

student_idstring uuid required
Example:0711034b-18b9-4f41-9b61-467ce9a373d5

UUID of the student

Query parameters

date_fromstring date
Example:2025-09-01

Filter attendance records on or after this date (YYYY-MM-DD format), default is no lower limit

date_tostring date
Example:2025-11-14

Filter attendance records on or before this date (YYYY-MM-DD format), default to today

Response

List of attendance records for the student

present_countinteger required

Number of sessions the student was present

total_countinteger required

Total number of sessions held

Example response

{
  "present_count": 15,
  "total_count": 20
}

Changes

    • ▲

      the response's body type changed from array to object for status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      endpoint added