goal

Return the possible goal targets for nutrients or food types (the cc columns) supported in the system. Use this as a catalogue for goal targets when creating a new goal.

get/goal_targets

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/goal_targets
  • Auth
    HTTP bearer

Response

successful operation

goal_type'nutrient' | 'frequency' required
target_display_namestring required
target_namestring required
target_unitstring nullable

Example response

[
  {
    "target_display_name": "vitamin c",
    "target_name": "vitamin_c_mg",
    "target_unit": "mg"
  }
]

Changes

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