🚧 Work in Progress: This documentation is actively being developed and is subject to change.
API ReferenceFood

Track a Food Item

Accepts a single food item for tracking and scoring.

POST
/track/food

Query Parameters

api-versionstring

The API version, in the format 'major.minor'.

userIdstring
logIdstring
foodIdstring
namestring
imageUrlstring
merchant
weightnumber
Formatdouble
unitstring
quantity?number
Formatdouble
amount?number
Formatdouble
currency?string
nutrition

Response Body

application/json

application/problem+json

application/problem+json

curl -X POST "https://loading/track/food?api-version=1.0" \  -H "Content-Type: application/json" \  -d '{    "userId": "string",    "logId": "string",    "foodId": "string",    "name": "string",    "imageUrl": "string",    "merchant": {      "name": "string"    },    "weight": 0.1,    "unit": "string",    "nutrition": {}  }'
{
  "id": "string",
  "message": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}