WorkoutPresetOpenServiceImpl

The following resources are part of this group:

/workoutpreset/get_equipment_list

Mount Point: /../api2/workoutpreset/get_equipment_list

GET

Retreives all the equipments available.

This service retrieves the static values of equipment Ids and equipments. These values can be provided as an input to get the User workouts using /get_workoutlist service.

The workout results retrieval services holds these values to identify the equipment that the workout has been completed

Response Body

element: (custom)
media types: application/xml
application/json

(no documentation provided)

/workoutpreset/get_workoutlist

Mount Point: /../api2/workoutpreset/get_workoutlist

GET

The user creates custom workouts giving specific goals and parameters such as time/calories/distance. This service returns all the workout presets created by the user. The user selects any one of the preset in the Lifefitness equipment before starting a workout

If the equipmentIds are not mentioned, then this returns all the workouts available.

This details provides the users preference of workouts and might help in suggesting similar workout regimens.

To provide the value for equipmentIds input, the service xx can be used to get the list of predefined equipmentIds and the desired value can be provided.

Example : 1 is used for Treadmill . To get the user workouts for Treadmill , 1 can be given as input. If no value is provided all the User workouts for all equipments are returned.

Parameters

name description type default
equipmentIds Contains comma separated equipments for which workout is requested. query

Response Body

element: workouts
media types: application/xml
application/json

List of User Programs matching the request criteria. Error will return HTTP status code 500 with error code and description. List of Error code and error message:

Error Code Error Message
100 Error in Accessing Service.
704 Error in passed parameter.