Retrieve detailed information about a specific assignment including materials, content, and submission status.
GET
/api/v1/assignment/{id}
curl \
--request GET 'http://localhost:3500/api/v1/assignment/assignment-123'
Response examples (200)
{
"message": "Assignment found",
"assignment": {
"id": "assignment-123",
"title": "Algorithm Implementation Assignment",
"status": "ACTIVE",
"content": [
{
"id": "content-1",
"text": "Implement both algorithms in Java",
"type": "INSTRUCTIONS"
}
],
"dueDate": "2025-11-30T23:59:59Z",
"maxScore": 100,
"materials": [
{
"id": "material-1",
"title": "Assignment Instructions.pdf",
"fileUrl": "https://storage.example.com/instructions.pdf"
}
],
"description": "Implement merge sort and quicksort",
"submissionStatus": "NOT_SUBMITTED"
}
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}