Retrieves all attempts made by a specific student for a particular CAT, including scores and submission details.
GET
/api/v1/cats/{id}/attempts/{student}
curl \
--request GET 'http://localhost:3500/api/v1/cats/123e4567-e89b-12d3-a456-426614174000/attempts/student123'
Response examples (200)
{
"total": 2,
"message": "Student attempts found",
"attempts": [
{
"id": "789e0123-e89b-12d3-a456-426614174002",
"status": "COMPLETED",
"startedAt": "2025-10-15T09:30:00.000Z",
"percentage": 83.33,
"totalMarks": 30,
"scoredMarks": 25,
"submittedAt": "2025-10-15T10:45:00.000Z",
"attemptNumber": 1
}
]
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}