...
In the examples below, many responses have been truncated for readability.
Searching
Searching for foods is a key action that users utilize to build recipes. Search results are paginated.
...
Expand |
---|
|
Code Block |
---|
| "data": {
"analysis": {
"getAnalysis": {
"analysis": {
"analysisType": "Net",
"nutrientInfos": [
{
"nutrient": {
"id": "84a8709a-0000-0000-ebf9-90cea7d9d44f",
"name": "Calories"
},
"value": 258
},
{
"nutrient": {
"id": "84a8709a-0001-0000-ebf9-90cea7d9d44f",
"name": "Protein"
},
"value": 5.9
},
{
"nutrient": {
"id": "84a8709a-0002-0000-ebf9-90cea7d9d44f",
"name": "Carbohydrates"
},
"value": 57.8
},
{
"nutrient": {
"id": "84a8709a-00cf-0000-ebf9-90cea7d9d44f",
"name": "Salt"
},
"value": 1.8725
},
...
],
"amountAnalyzed": {
"quantity": {
"value": "100"
},
"unit": {
"name": "Gram"
}
},
"weight": {
"quantity": {
"value": "100"
},
"unit": {
"name": "Gram"
}
}
}
}
}
}
} |
|
Querying Standard Entities
There are several examples of standard entities in the data. These include units of measure, products, suppliers, etc.
Expand |
---|
|
Query Code Block |
---|
query{
units{
getStandard
{
units{
id
name
dimension
}
}
}
} |
|
Expand |
---|
Code Block |
---|
| {
"data": {
"units": {
"getStandard": {
"units": [
{
"id": "f14819b2-e1b6-4f8b-9b85-08d43583ec09",
"name": "Individual Carton",
"dimension": "Discrete"
},
{
"id": "e92dc923-6da8-4fe1-9380-6564201d70c2",
"name": "Kit",
"dimension": "Discrete"
},
{
"id": "a7df0af5-0001-0000-7484-751e8eaf05c6",
"name": "Teaspoon",
"dimension": "Volume"
},
{
"id": "a7df0af5-0002-0000-7484-751e8eaf05c6",
"name": "Tablespoon",
"dimension": "Volume"
},
{
"id": "a7df0af5-0003-0000-7484-751e8eaf05c6",
"name": "Cup",
"dimension": "Volume"
},
...
]
}
}
}
} |
|
Creating an Ingredient
Creating a Recipe
...