Skip to content

Display Fetched Data in Your App #1027

@nposadaa

Description

@nposadaa

Tutorials: https://developers.sap.com/tutorials/appgyver-display-information.html

Write here how you think we can improve the tutorial ...

This tutorial is outdated against the actual response from the API. API's payload response clear states energy EQ 657 but the mission would not take the response.

{
"code": "0031200016034",
"product": {
"image_front_url": "https://images.openfoodfacts.net/images/products/003/120/001/6034/front_en.4.400.jpg",
"nutriments": {
"added-sugars": 27.1428571428571,
"added-sugars_100g": 27.1428571428571,
"added-sugars_serving": 19,
"added-sugars_unit": "g",
"added-sugars_value": 27.1428571428571,
"carbohydrates": 40,
"carbohydrates_100g": 40,
"carbohydrates_serving": 28,
"carbohydrates_unit": "g",
"carbohydrates_value": 40,
"cholesterol": 0,
"cholesterol_100g": 0,
"cholesterol_serving": 0,
"cholesterol_unit": "g",
"cholesterol_value": 0,
"energy": 657,
"energy-kcal": 157.142857142857,
"energy-kcal_100g": 157.142857142857,
"energy-kcal_serving": 110,
"energy-kcal_unit": "kcal",
"energy-kcal_value": 157.142857142857,
"energy_100g": 657,
"energy_serving": 460,
"energy_unit": "kJ",
"energy_value": 657,
"fat": 0,
"fat_100g": 0,
"fat_serving": 0,
"fat_unit": "g",
"fat_value": 0,
"fiber": 1.42857142857143,
"fiber_100g": 1.42857142857143,
"fiber_serving": 1,
"fiber_unit": "g",
"fiber_value": 1.42857142857143,
"nova-group": 5.71428571428571,
"nova-group_100g": 5.71428571428571,
"nova-group_serving": 5.71428571428571,
"nova-group_unit": "g",
"nova-group_value": 5.71428571428571,
"proteins": 0,
"proteins_100g": 0,
"proteins_serving": 0,
"proteins_unit": "g",
"proteins_value": 0,
"salt": 0.0357142857142857,
"salt_100g": 0.0357142857142857,
"salt_serving": 0.025,
"salt_unit": "g",
"salt_value": 0.0357142857142857,
"saturated-fat": 0,
"saturated-fat_100g": 0,
"saturated-fat_serving": 0,
"saturated-fat_unit": "g",
"saturated-fat_value": 0,
"sodium": 0.0142857142857143,
"sodium_100g": 0.0142857142857143,
"sodium_serving": 0.01,
"sodium_unit": "g",
"sodium_value": 0.0142857142857143,
"sugars": 30,
"sugars_100g": 30,
"sugars_serving": 21,
"sugars_unit": "g",
"sugars_value": 30,
"trans-fat": 0,
"trans-fat_100g": 0,
"trans-fat_serving": 0,
"trans-fat_unit": "g",
"trans-fat_value": 0
},
"nutrition_data": "on",
"nutrition_data_per": "100g",
"nutrition_data_prepared_per": "100g",
"product_name": "Whole Berry Cranberry Sauce"
},
"status": 1,
"status_verbose": "product found"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions