GET /api/v1/semesters/{id}

Path parameters

  • id string Required

Responses

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

      Response message

    • name string Required
    • id string Required

      Item ID

    • 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

    • startDate string(date-time) Required
    • endDate string(date-time) Required
    • ExamPeriod array[string] Required
    • offerings array[string] Required
    • department object Required
      Hide department attributes Show department attributes object
      • id string Required

        The unique idenitier of the department

      • name string Required

        Name of the department

      • instituteid string Required

        id of the parent insitute

      • 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

  • 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/semesters/{id}
curl \
 --request GET 'http://localhost:3500/api/v1/semesters/{id}'
Response examples (200)
{
  "message": "string",
  "name": "string",
  "id": "string",
  "createdAt": "2025-05-04T09:42:00Z",
  "updatedAt": "2025-05-04T09:42:00Z",
  "startDate": "2025-05-04T09:42:00Z",
  "endDate": "2025-05-04T09:42:00Z",
  "ExamPeriod": [
    "string"
  ],
  "offerings": [
    "string"
  ],
  "department": {
    "id": "string",
    "name": "string",
    "instituteid": "string",
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z"
  }
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}