GET
/trainer-appointment/{client_id}
curl \
--request GET 'http://63.141.232.244:25540/v0/trainer-appointment/{client_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"success": true,
"bank_card": [
{
"client_id": 1,
"last_name": "Иванов",
"created_at": "2024-10-10T18:36:47Z",
"first_name": "Иван",
"patronymic": "Иванович",
"phone_number": "79174236278",
"email_address": "Og0rB@example.com",
"profile_picture_url": "https://example.com/profile_picture.jpg",
"left_at": null,
"employee_id": 2,
"employee_type": "ADMIN",
"gym_id": 1,
"ends_at": "2024-10-10T20:36:47Z",
"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"
}