GET /api/v1/courses/{id}

Path parameters

  • id string Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • course object Required
      Hide course attributes Show course attributes object
      • name string Required
      • description string Required
      • createdAt string(date-time) Required

        The date and time the resource was created

      • updatedAt string(date-time) Required

        The date and time the resource was last updated

      • id string Required

        Item ID

  • 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
GET /api/v1/courses/{id}
curl \
 --request GET 'http://localhost:3500/api/v1/courses/{id}'
Response examples (200)
{
  "message": "string",
  "course": {
    "name": "string",
    "description": "string",
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z",
    "id": "string"
  }
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}