Skip to content

Instantly share code, notes, and snippets.

@debnath
Last active October 7, 2017 23:46
Show Gist options
  • Save debnath/cba8feb504564259bcfe873664d4311d to your computer and use it in GitHub Desktop.
Save debnath/cba8feb504564259bcfe873664d4311d to your computer and use it in GitHub Desktop.
Soul Origin API
Website only has kilojoule/calorie info so that's all we'll render I guess. Maybe I can estimate the protein...
Mock data:
POST /api/v1/nutrition/salad
{
"size": "small",
"data": [
{
"id": "chicken_pasta",
"proportion": "0.33"
},
{
"id": "pumpkin_couscous",
"proportion": "0.33"
},
{
"id": "chicken_veggie",
"proportion": "0.33"
}
]
}
Response:
{
"calorie": 250
"kilojoule:": 1000,
"protein": 12 (this field may not be here)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment