GET /api/v1/topic/{id}

Retrieve detailed information about a specific topic including its title, description, associated lessons, and learning materials.

Path parameters

  • id string Required

    UUID of the topic

Responses

  • 200 application/json

    Topic 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
  • 401

    Unauthorized - Authentication required

  • 404

    Topic not found

GET /api/v1/topic/{id}
curl \
 --request GET 'http://localhost:3500/api/v1/topic/123e4567-e89b-12d3-a456-426614174000'
Response examples (200)
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "title": "Introduction to Data Structures",
  "lessons": [
    {
      "id": "lesson-1",
      "type": "NORMAL",
      "title": "Arrays and Lists"
    },
    {
      "id": "lesson-2",
      "type": "NORMAL",
      "title": "Stacks and Queues"
    }
  ],
  "createdAt": "2025-09-01T10:00:00Z",
  "updatedAt": "2025-11-01T14:30:00Z",
  "orderIndex": 1,
  "description": "Fundamental concepts of data organization and manipulation",
  "unitOfferingId": "unit-456"
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}