Retrieves a list of working periods for a specific gym.
No authentication required.
Permission | Description |
---|---|
gyms.view_all | Required to view working periods for an inactive gym |
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
GET /api/v1/gyms/123/working-periods
Authorization: Bearer {token}
Returns a list of working period resources, sorted by weekday and opening time.
{
"data": [ { /* working period resource */ }, ... ]
}
For a full schema, see Working Period Resource.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |