Retrieve all units/courses for a specific student (active, completed, failed, etc.) with complete details
GET
/api/v1/student/{studentId}/units
curl \
--request GET 'https://api.echoplain.social/api/v1/student/uuid-string/units'
Response examples (200)
{
"message": "string",
"success": true,
"units": [
{
"id": "uuid-string",
"unit": {
"id": "uuid-string",
"Code": "CS201",
"personalizedOutline": "string",
"unitVersion": {
"id": "uuid-string",
"title": "Data Structures and Algorithms",
"description": "Introduction to data structures and algorithms",
"totalMarks": 100,
"examMarks": 60,
"otherMarks": 40,
"hasLabs": true
},
"semester": {
"id": "uuid-string",
"name": "Fall 2023",
"shortCode": "F23",
"startDate": "2023-09-01T00:00:00.000Z",
"endDate": "2023-12-31T23:59:59.000Z"
},
"lecturer": {
"id": "uuid-string",
"userId": "uuid-string",
"user": {
"id": "uuid-string",
"email": "student@example.com",
"role": "STUDENT",
"status": "ACTIVE",
"profile": {
"id": "uuid-string",
"fullName": "John Doe",
"phone": "+1234567890",
"createdAt": "2025-09-25T10:30:00.000Z",
"updatedAt": "2025-09-25T10:30:00.000Z"
},
"createdAt": "2025-09-25T10:30:00.000Z",
"updatedAt": "2025-09-25T10:30:00.000Z"
}
},
"studentGroupingsEnabled": false,
"createdAt": "2025-09-25T10:30:00.000Z",
"updatedAt": "2025-09-25T10:30:00.000Z"
},
"status": "ACTIVE",
"createdAt": "2025-09-25T10:30:00.000Z",
"updatedAt": "2025-09-25T10:30:00.000Z"
}
]
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}