Get the food information from the server
Changed onRequest
- Base URLhttps://api.rxfoodapp.com/api
- URLhttps://api.rxfoodapp.com/api/food
- AuthHTTP bearer
Query parameters
Exact catalogue row. Prefer this when the caller already has an rxfood_id from search (shared names have multiple nutrition_source siblings).
When resolving by food_name, only return a DBFood whose nutrition_source or primary_data_origin_code matches (e.g. cnf).
Response
successful operation
Example response
{
"nutrient_overrides": {
"aa_patient": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"bb_reviewer": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"cc_external": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"dd_estimate": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"ee_validation": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
}
}
}Changes
- info
added the new optional
queryrequest parameternutrition_source - info
added the new optional
queryrequest parameterrxfood_id - info
the
queryrequest parameterfood_namebecame optional
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info