dambel

دمبل

shevron
ورود | ثبت نام

API Docs / gyms / working-periods / index



GET /api/v1/gyms/{gym-id}/working-periods

Retrieves a list of working periods for a specific gym.

No authentication required.


Permissions

PermissionDescription
gyms.view_allRequired to view working periods for an inactive gym

URL Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123

Request Example

GET /api/v1/gyms/123/working-periods
Authorization: Bearer {token}

Response

200 OK

Returns a list of working period resources, sorted by weekday and opening time.

Example

{
  "data": [ { /* working period resource */ }, ... ]
}

For a full schema, see Working Period Resource.


Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube