Skip to content

Health Measure Resource

federico.fiorini edited this page Feb 9, 2016 · 12 revisions
  • Path: POST /user/measure

  • Accepts: application/json

  • Produces: application/json

  • Requires Authorization: Yes

  • Requires User Token: Yes

  • Body:

    {
     "typeId": {id of the type},
     "value" : {value of the measurement}
    }
  • Response:

    {
     "idUser": 2,
     "idType": 1,
     "value": "1000",
     "idMeasure": 6,
     "measurement": "Kg"
    }
    
  • Path: GET /user/measurelist/{typeid}

  • Produces: application/json

  • Require Authorization: Yes

  • Requires User Token: Yes

  • Response:

    [
     {
       "id": 2,
       "value": 90,
       "createdDate": "2016-02-07",
       "hmType": {
         "id": 2,
         "name": "height",
         "units": "cm"
       }
     },
     {
       "id": 1,
       "value": 100,
       "createdDate": "2016-02-07",
       "hmType": {
         "id": 2,
         "name": "height",
         "units": "cm"
       }
     }
    ]
    

Clone this wiki locally