metrics

Calculate the value for a specific metric for a defined period up to certain date

get/metrics/{metric_name}/{time_period}

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/metrics/{metric_name}/{time_period}
  • Auth
    HTTP bearer

Path parameters

metric_namestring required
time_period'daily' | 'weekly' required

'weekly' for nutrition reports, 'daily' for daily reports

Query parameters

end_datestring required

end date for metric calculations in format YYYY-MM-DD

Response

successful operation

integer required

Changes

No recorded changes to this operation across all 19 revisions of this API.