Perfect Gym api

Classes categories

Each fitness class is of certain class type, and each class type belongs to a certain classes category.

Class category properties

Class category is described by the following properties

Name Type Description
id long Unique identifier of class category.
timestamp long Timestamp. Indicates when resource was last modified.
isDeleted bool Indicates if resource is deleted.
name string Class category name.
description string Class category description.
imageUrl string Class category image.
iconUrl string Class type icon URL.
classTypes array Classes types in this category.
isProductRequiredForBooking string Indicates if classes of this category can be paid for with products.

List classes categories with timestamp alt text alt text

GET Classes/Categories

Returns paginated classes categories list.

Parameters

Name Type Description
timestamp long Timestamp. Request returns classes categories with timestamp grater then timestamp, defaults to 0.

Example request

In this example we fetch list of all classes categories (timestamp parameter defaults to 0) available in a company.

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Classes/Categories

Example response

Status: 200 OK
{
  "id": 2,
  "category": "MIX",
  "imageUrl": "https://yourdomain.perfectgym.pl/Api/Files/Photo?xxxxxxxxx",
  "isDeleted": false,
  "isProductRequiredForBooking": false,
  "name": "Mix",
  "timestamp": 1223165441,
  "classTypes": {
    "elements": [
      {
        "id": 1,
        "timestamp": 263952,
        "name": "Box",
        "photoUrl": "",
        "iconUrl": "",
        "description": "Box perfectly combines cardio and strength training under the guise of groove!",
        "rating": {
          "rating": 4.1,
          "votesCount": 1234,
          "rankingSort": 2.3
        },
        "category": {
          "id": 2,
          "category": "MIX",
          "imageUrl": "https://yourdomain.perfectgym.pl/Api/Files/Photo?xxxxxxxxx",
          "isDeleted": false,
          "isProductRequiredForBooking": false,
          "name": "Mix",
          "timestamp": 1223165441
        }
      },
      {
        "id": 2,
        "timestamp": 382653,
        "name": "POWER JOGA",
        "photoUrl": "",
        "iconUrl": "",
        "description": "Power Yoga is definitely an intense workout that will make you sweat.",
        "rating": {
          "rating": 4.1,
          "votesCount": 4321,
          "rankingSort": 4.3
        },
        "category": {
          "id": 2,
          "category": "MIX",
          "imageUrl": "https://yourdomain.perfectgym.pl/Api/Files/Photo?xxxxxxxxx",
          "isDeleted": false,
          "isProductRequiredForBooking": false,
          "name": "Mix",
          "timestamp": 1223165441
        }
      }
    ]
  }
}
Perfect Gym api