GET /api/v1/assignment/{id}

Retrieve detailed information about a specific assignment including materials, content, and submission status.

Path parameters

  • id string Required

    UUID of the assignment

Responses

  • 200 application/json

    Assignment 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

    Assignment not found

GET /api/v1/assignment/{id}
curl \
 --request GET 'https://api.echoplain.social/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
}