curl --request GET \
--url http://localhost:5000/api/attendance/student/64b8f1a2c3d4e5f678901234
[
{
"_id": "64c9a3b7d2e1f0a987654321",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT",
"__v": 0
},
{
"_id": "64c9a3b7d2e1f0a987654322",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-17T00:00:00.000Z",
"status": "LATE",
"__v": 0
},
{
"_id": "64c9a3b7d2e1f0a987654323",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-16T00:00:00.000Z",
"status": "ABSENT",
"__v": 0
}
]
Retrieve all attendance records for a specific student.
curl --request GET \
--url http://localhost:5000/api/attendance/student/64b8f1a2c3d4e5f678901234
[
{
"_id": "64c9a3b7d2e1f0a987654321",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT",
"__v": 0
},
{
"_id": "64c9a3b7d2e1f0a987654322",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-17T00:00:00.000Z",
"status": "LATE",
"__v": 0
},
{
"_id": "64c9a3b7d2e1f0a987654323",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-16T00:00:00.000Z",
"status": "ABSENT",
"__v": 0
}
]
Returns all attendance records associated with a given student ID. Records are returned in the order they were inserted.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/praveenarya123/sps-backend/llms.txt
Use this file to discover all available pages before exploring further.
PRESENT, ABSENT, LATE).curl --request GET \
--url http://localhost:5000/api/attendance/student/64b8f1a2c3d4e5f678901234
[
{
"_id": "64c9a3b7d2e1f0a987654321",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT",
"__v": 0
},
{
"_id": "64c9a3b7d2e1f0a987654322",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-17T00:00:00.000Z",
"status": "LATE",
"__v": 0
},
{
"_id": "64c9a3b7d2e1f0a987654323",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-16T00:00:00.000Z",
"status": "ABSENT",
"__v": 0
}
]