Retrieve all assessment attempts made by the student across assignments, CATs, and exams with detailed attempt information
GET
/api/v1/student/{studentId}/attempts
curl \
--request GET 'http://localhost:3500/api/v1/student/uuid-string/attempts'
Response examples (200)
{
"message": "string",
"success": true,
"attempts": [
{
"id": "uuid-string",
"assessmentId": "uuid-string",
"assessmentTitle": "Programming Assignment 1",
"assessmentType": "assignment",
"startedAt": "2025-10-10T14:30:00.000Z",
"submittedAt": "2025-10-10T16:45:00.000Z",
"totalScore": 85,
"maxScore": 100,
"percentage": 85,
"status": "completed"
}
]
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}