GET /api/v1/student/{studentId}/cats/{catId}/questions

Retrieves CAT questions with strict access control. Only available when CAT is ACTIVE, COMPLETED, or GRADED and past release date.

Path parameters

  • studentId string Required

    Unique identifier of the student

  • catId string Required

    Unique identifier of the CAT

Responses

  • 200 application/json

    CAT questions retrieved successfully

  • 400

    Cannot access CAT questions (wrong status, before release date, not enrolled)

  • 404

    Student or CAT not found

GET /api/v1/student/{studentId}/cats/{catId}/questions
curl \
 --request GET 'https://api.echoplain.social/api/v1/student/uuid-string/cats/uuid-string/questions'
Response examples (200)
{
  "cat": {
    "id": "uuid",
    "score": 30,
    "title": "CAT 1",
    "status": "ACTIVE",
    "dueDate": "2025-10-01T01:00:00.000Z",
    "unitCode": "CS101",
    "questions": [
      {
        "id": "uuid",
        "type": "MCQ",
        "options": [
          "A storage location",
          "A function",
          "A loop",
          "A class"
        ],
        "maxScore": 5,
        "question": "What is a variable?"
      }
    ],
    "unitTitle": "Introduction to Programming",
    "maxAttempts": 1,
    "releaseDate": "2025-10-01T00:00:00.000Z",
    "attemptsUsed": 0,
    "durationMinutes": 60
  },
  "message": "CAT questions retrieved successfully",
  "success": true,
  "canAttempt": true
}