GET /api/v1/unit-instance/{unit}/topics

Retrieve all topics (modules/chapters) for a specific unit instance, ordered by sequence.

Path parameters

  • unit string Required

    UUID of the unit instance (unit offering)

Responses

  • 200 application/json

    Topics 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

    Unit not found

GET /api/v1/unit-instance/{unit}/topics
curl \
 --request GET 'http://localhost:3500/api/v1/unit-instance/123e4567-e89b-12d3-a456-426614174000/topics'
Response examples (200)
{
  "topics": [
    {
      "id": "topic-1",
      "title": "Introduction to Algorithms",
      "orderIndex": 1,
      "description": "Fundamental concepts",
      "lessonsCount": 5
    },
    {
      "id": "topic-2",
      "title": "Data Structures",
      "orderIndex": 2,
      "description": "Arrays, Lists, Trees",
      "lessonsCount": 8
    }
  ],
  "unitId": "123e4567-e89b-12d3-a456-426614174000",
  "totalTopics": 3
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}