GET /api/v1/cats/attempt/{attempt}

Retrieves detailed information about a specific CAT attempt including questions, responses, and grading.

Path parameters

  • attempt string Required

    Attempt ID

Responses

  • 200 application/json

    Attempt details retrieved successfully

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 404

    Attempt not found

GET /api/v1/cats/attempt/{attempt}
curl \
 --request GET 'http://localhost:3500/api/v1/cats/attempt/789e0123-e89b-12d3-a456-426614174002'
Response examples (200)
{
  "attempt": {
    "id": "789e0123-e89b-12d3-a456-426614174002",
    "catId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "COMPLETED",
    "responses": [
      {
        "marks": 2,
        "response": "Paris",
        "isCorrect": true,
        "questionId": "456e7890-e89b-12d3-a456-426614174001"
      }
    ],
    "startedAt": "2025-10-15T09:30:00.000Z",
    "studentId": "student123",
    "totalMarks": 30,
    "scoredMarks": 25,
    "submittedAt": "2025-10-15T10:45:00.000Z"
  },
  "message": "Attempt found"
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}