GET /api/v1/cats/{id}

Retrieves detailed information about a specific CAT including questions (if authorized)

Path parameters

  • id string Required

    CAT ID

Query parameters

  • level string

    Access level - HIGH shows all details including DRAFT, NORMAL shows only released/active content

    Values are HIGH or NORMAL.

Responses

  • 200 application/json

    CAT 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

    CAT not found

GET /api/v1/cats/{id}
curl \
 --request GET 'http://localhost:3500/api/v1/cats/123e4567-e89b-12d3-a456-426614174000'
Response examples (200)
{
  "cat": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "marks": 30,
    "title": "Midterm CAT 1",
    "status": "RELEASED",
    "dueDate": "2025-10-15T11:00:00.000Z",
    "createdAt": "2025-10-01T10:00:00.000Z",
    "questions": [],
    "description": "First continuous assessment test",
    "releaseDate": "2025-10-15T09:00:00.000Z"
  },
  "message": "CAT found"
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}