ورود | ثبت نام
  • FA
  • EN

API Docs

GET /api/v1/gyms/{gym-id}/buffet-items

Retrieves a list of buffet items for a specific gym.

No authentication required.


Permissions

PermissionDescription
gyms.view_allRequired to view buffet items for a gym that is inactive or whose license is not approved

A gym's public sub-resources are only served while the gym is active and its license is approved. The gym owner and holders of gyms.view_all are exempt; everyone else gets a 403. See Gym List.


Path Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123

Response

200 OK

Returns a list of gym buffet item resources.

Example

{
  "data": [
    {
      "id": 1,
      "gym_id": 123,
      "title": "Protein Bar",
      "description": "Tasty bar",
      "price": 100,
      "discount": 10.5,
      "discounted_price": 89.5,
      "media": []
    }
  ]
}

For a full schema, see Gym Buffet Item Resource.


Error Responses

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

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

LinkedinInstagramXYoutubeTelegramGitHub