Get Gyms

GET /gym

Get all existing gyms.

Responses

  • 200 application/json

    Successful retrieval of gyms.

    Hide response attributes Show response attributes object
    • success boolean

      Whether the retrieval is successful

    • gym array[object]
      Hide gym attributes Show gym attributes object
      • gym_id integer Required

        Id of the gym in database

      • city string Required

        City where gym is located

      • street string Required

        Street where gym is located

      • building string Required

        Building number

      • description string Required

        Gym's description

  • 429 application/json

    Rate limit exceeded - 100 queries per 15 minutes.

    Hide response attributes Show response attributes object
GET /gym
curl \
 -X GET http://63.141.232.244:25540/v0/gym
Response examples (200)
{
  "success": true,
  "gym": [
    {
      "city": "Казань",
      "gym_id": 1,
      "street": "Хади Такташа",
      "building": "24",
      "description": "Фитнес-клуб премиум-класса, расположенный в самом сердце Казани."
    }
  ]
}
Response examples (429)
{
  "success": false,
  "error": "Too many requests, please try again later"
}