Skip to content

GET Exercise

Eric Benoit edited this page Oct 6, 2013 · 8 revisions

Display an Individual's Exercise

Data

{
  "user" : [
    {
      "user_id"    : 1,
      "name"       : "Eric Benoit",
      "age"        : 28,
      "gender"     : "Male",
      "height"     : "5,6",
      "weight"     : "151"
    }
  ],
  "current_pullup_repetitions_goal" : 12,
  "current_situp_repetitions_goal"  : 10, // add any other current exercise goals
  "goals" : [
    {
      "exercise_type_id"  : 1, // 1 = Pull Ups
      "repetitions_goal"  : 10,
      "date"              : "2012-12-08T15:03:00Z"
    },
    {
      "exercise_type_id"  : 1,
      "repetitions_goal"  : 12,
      "date"              : "2013-06-08T15:03:00Z"
    },
    {
      "exercise_type_id"  : 2, // 2 = Sit Ups
      "repetitions_goal"  : 10,
      "date"              : "2013-06-08T15:03:00Z"
    } // add any other user goals
   ],
  "exercise" : [
     {
       "device_udid"       : 123-1,
       "exercise_type_id"  : 1,
       "repetitions"       : 12,
       "date"              : "2013-06-08T15:03:00Z"
     },
     {
       "device_udid"       : 124-1,
       "exercise_type"     : 2,
       "repetitions"       : 35,
       "date"              : "2013-06-08T15:03:00Z"
     } // add in any other historical exercise
  ]
}

Note: Currently we keep adding new exercise each time it is uploaded. So there isn't a clean daily total but rather could be a series of repetitions based on different times of the day.

If we want to know and display where the exercises were taking place then we'll have to revise this.

Parameters

TBD

Clone this wiki locally