Get Appointments

GET /trainer-appointment

Get client's trainer appointments using their client_id.

Responses

  • 200 application/json

    Successful retrieval of appointments.

    Hide response attributes Show response attributes object
    • success boolean

      Whether the retrieval is successful

    • bank_card array[object]
      Hide bank_card attributes Show bank_card attributes object
  • 401 application/json

    User is not unauthorized or permissions are missing.

    Hide response attributes Show response attributes object
  • 429 application/json

    Rate limit exceeded - 100 queries per 15 minutes.

    Hide response attributes Show response attributes object
GET /trainer-appointment
curl \
 -X GET http://63.141.232.244:25540/v0/trainer-appointment \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "bank_card": [
    {
      "gym_id": 1,
      "ends_at": "2024-10-10T20:36:47Z",
      "client_id": 1,
      "employee_id": 2,
      "appointed_at": "2024-10-10T18:36:47Z",
      "trainer_appointment_id": 1
    }
  ]
}
Response examples (401)
{
  "success": false,
  "error": "Unauthorized"
}
Response examples (429)
{
  "success": false,
  "error": "Too many requests, please try again later"
}