Workout API

Here are the various things you can do with the Workout API. Check in the top right for the different protocols.

Example Request

PUT /v1/workouts/
{
id: 2,
met: 3.4
}
GET /v1/workouts/1070
Example Response
{
data:
    [{
  "category": "bicycling", 
  "cid": 7, 
  "description": "", 
  "id": 1070, 
  "img": "http://s2.dmcdn.net/APp9p/x240-KGQ.jpg", 
  "met": 5.0, 
  "name": "unicycling"
    }]
}

Example Request

GET /v1/workouts/2
POST /v1/workouts
{
    name: 'Super Jump',
    category: 'Full Body',
    equipment: 'None',
    description: "Jump miles high in a single attempt, then use your vibration muscles to fly.",
    muscle: 'All of them',
    met: 70.4
}
DELETE /v1/workouts/
{
id: 3
}
Example Response
{
    name: 'Running',
    img: 'http://www.runguides.com/assets/running-icon.svg',
    link: 'https://www.youtube.com/embed/lCpotGr0TB4',
    category: 'Legs',
    equipment: 'None',
    description: "Running or jogging outside in a park, on the tracks,...",
    muscle: 'Hamstrings, quadriceps, hip flexors, gluteals, calf muscles',
    met: 7.0
}

Response Status 201:

{
    data: {
    uri: /v1/workouts/3
    }
}

Response Status 202:

{
    data: {
        uri: /v1/workouts/2
    }
}

Response Status 202.

results matching ""

    No results matching ""