Get detailed information about a specific material

GET /api/v1/materials/detail/{materialId}

Retrieve comprehensive details about a specific material including its associations.

Returns:

  • Complete material information
  • Unit offering details
  • Associated lesson information
  • Upload metadata

Use Cases:

  • Material detail page
  • Download preparation
  • Material management
  • Audit and tracking

Path parameters

  • materialId string Required

    UUID of the material to get details for

Responses

  • 200 application/json

    Material details retrieved successfully

    Hide response attributes Show response attributes object
    • material object
      Hide material attributes Show material attributes object
      • id string
      • title string
      • originalName string
      • filetype string
      • fileUrl string
      • description string
      • uploadedAt string(date-time)
      • createdAt string(date-time)
      • updatedAt string(date-time)
    • unitOffering object
      Hide unitOffering attributes Show unitOffering attributes object
      • id string
      • code string
      • lecturer string
    • associatedLessons array[object]
      Hide associatedLessons attributes Show associatedLessons attributes object
      • id string
      • title string
      • description string
      • order number
      • topic object
        Hide topic attributes Show topic attributes object
        • id string
        • title string
        • order number
  • 400

    Bad Request - Material not found

GET /api/v1/materials/detail/{materialId}
curl \
 --request GET 'https://api.echoplain.social/api/v1/materials/detail/456e7890-e12b-34c5-d678-901234567890'
Response examples (200)
{
  "material": {
    "id": "string",
    "title": "Introduction_Slides.pptx",
    "originalName": "Introduction_Slides.pptx",
    "filetype": "pptx",
    "fileUrl": "string",
    "description": "string",
    "uploadedAt": "2025-05-04T09:42:00Z",
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z"
  },
  "unitOffering": {
    "id": "string",
    "code": "CS101",
    "lecturer": "Dr. John Smith"
  },
  "associatedLessons": [
    {
      "id": "string",
      "title": "string",
      "description": "string",
      "order": 42.0,
      "topic": {
        "id": "string",
        "title": "string",
        "order": 42.0
      }
    }
  ]
}