GET /api/v1/student/{studentId}/assignments/{assignmentId}/questions

Retrieves assignment questions with strict access control. Only available when assignment is ACTIVE/RELEASED and within valid timeframe.

Path parameters

  • studentId string Required

    Unique identifier of the student

  • assignmentId string Required

    Unique identifier of the assignment

Responses

  • 200 application/json

    Assignment questions retrieved successfully

  • 400

    Cannot access assignment questions (wrong status, outside timeframe, not enrolled)

  • 404

    Student or assignment not found

GET /api/v1/student/{studentId}/assignments/{assignmentId}/questions
curl \
 --request GET 'https://api.echoplain.social/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
}