Retrieve all course enrollments for a specific student - Legacy endpoint for backward compatibility
GET
/api/v1/student/{studentId}/enrollments
curl \
--request GET 'http://localhost:3500/api/v1/student/uuid-string/enrollments'
Response examples (200)
{
"message": "string",
"enrollments": [
{
"id": "uuid-string",
"courseIntake": {
"id": "uuid-string",
"name": "September 2023 Intake",
"course": {
"id": "uuid-string",
"name": "Bachelor of Computer Science",
"description": "A comprehensive computer science degree"
},
"academicYear": {
"id": "uuid-string",
"yearLabel": "2023/2024",
"startDate": "2023-09-01T00:00:00.000Z",
"endDate": "2024-08-31T23:59:59.000Z"
}
},
"createdAt": "2025-09-25T10:30:00.000Z",
"updatedAt": "2025-09-25T10:30:00.000Z"
}
]
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}