forked from eatvio/eatvio_app
113 lines
2.7 KiB
JSON
113 lines
2.7 KiB
JSON
{
|
||
"data": [
|
||
{
|
||
"id": 1,
|
||
"slug": "my-keto-diet",
|
||
"name": "My Keto Diet",
|
||
"image": "https://example.com/my-keto.jpg",
|
||
"duration": 14,
|
||
"state": "drafted",
|
||
"type": {
|
||
"light": true,
|
||
"veg": true,
|
||
"carb": false,
|
||
"meat": true
|
||
},
|
||
"description_md": "My drafted keto diet for two weeks",
|
||
"daily_schedule": {
|
||
"1": {
|
||
"1": {
|
||
"0": {
|
||
"name": "Омлет",
|
||
"portion": "gr",
|
||
"quantity": 200,
|
||
"product_nutritional_value_id": 601,
|
||
"nutrition": {
|
||
"energy": 318.0,
|
||
"proteins": 21.2,
|
||
"fats": 24.2,
|
||
"carbohydrates": 2.0
|
||
}
|
||
}
|
||
},
|
||
"2": {
|
||
"0": {
|
||
"name": "Салат с курицей",
|
||
"portion": "gr",
|
||
"quantity": 300,
|
||
"product_nutritional_value_id": 602,
|
||
"nutrition": {
|
||
"energy": 285.0,
|
||
"proteins": 35.0,
|
||
"fats": 12.0,
|
||
"carbohydrates": 8.0
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"2": {
|
||
"1": {
|
||
"0": {
|
||
"name": "Творог 5%",
|
||
"portion": "gr",
|
||
"quantity": 200,
|
||
"product_nutritional_value_id": 603,
|
||
"nutrition": {
|
||
"energy": 226.0,
|
||
"proteins": 31.0,
|
||
"fats": 9.0,
|
||
"carbohydrates": 3.4
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"author": {
|
||
"author_slug": "me",
|
||
"author_name": "My Name",
|
||
"author_profile_icon": "https://example.com/me.jpg",
|
||
"author_is_me": true,
|
||
"is_entity_subscribed_by_me": null,
|
||
"author_place_in_rating": null
|
||
},
|
||
"total_likes": 0,
|
||
"total_views": 0,
|
||
"total_comments": 0,
|
||
"was_liked_by_me": false,
|
||
"is_favorite": false,
|
||
"daily_nutrition": [
|
||
{
|
||
"energy": 603.0,
|
||
"proteins": 56.2,
|
||
"fats": 36.2,
|
||
"carbohydrates": 10.0
|
||
},
|
||
{
|
||
"energy": 226.0,
|
||
"proteins": 31.0,
|
||
"fats": 9.0,
|
||
"carbohydrates": 3.4
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"links": {
|
||
"first": "http://localhost/api/my-diets?page=1",
|
||
"last": "http://localhost/api/my-diets?page=1",
|
||
"prev": null,
|
||
"next": null
|
||
},
|
||
"meta": {
|
||
"current_page": 1,
|
||
"from": 1,
|
||
"last_page": 1,
|
||
"links": [],
|
||
"path": "http://localhost/api/my-diets",
|
||
"per_page": 10,
|
||
"to": 1,
|
||
"total": 1,
|
||
"total_min_price": null,
|
||
"total_max_price": null
|
||
}
|
||
}
|