Retrieves assignment questions with strict access control. Only available when assignment is ACTIVE/RELEASED and within valid timeframe.
GET
/api/v1/student/{studentId}/assignments/{assignmentId}/questions
curl \
--request GET 'http://localhost:3500/api/v1/student/uuid-string/assignments/uuid-string/questions'
Response examples (200)
{
"message": "Assignment questions retrieved successfully",
"success": true,
"assignment": {
"id": "uuid",
"marks": 20,
"title": "Assignment 1",
"status": "RELEASED",
"content": [],
"dueDate": "2025-10-15T23:59:59.999Z",
"unitCode": "CS101",
"materials": [],
"unitTitle": "Introduction to Programming",
"description": "Complete the following tasks",
"maxAttempts": 2,
"releaseDate": "2025-10-01T00:00:00.000Z",
"attemptsUsed": 0
},
"canAttempt": true
}