Skip to content

Commit 2d7e35c

Browse files
committed
Fix JSON response
1 parent 0c7b801 commit 2d7e35c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

test/fixtures/nutrition/nutritional_plan_info_detail_response.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,18 @@
113113
"image": {
114114
"id": 3,
115115
"uuid": "778fe5cb-a5d9-42e5-9df2-2a47022b720f",
116-
"ingredient_id": "58300",
116+
"ingredient_id": 58300,
117117
"ingredient_uuid": "60e1f479-9af1-4bd4-b2a8-1ebe8974258e",
118118
"image": "http://localhost:8000/media/ingredients/60e1f479-9af1-4bd4-b2a8-1ebe8974258e/778fe5cb-a5d9-42e5-9df2-2a47022b720f.jpg",
119119
"last_update": "2022-08-09T15:31:46.833918+02:00",
120120
"size": 33617,
121121
"source_url": "",
122122
"license": 1,
123-
"license_author": "kiliweb"
123+
"license_author": "kiliweb",
124+
"license_title": "Photo",
125+
"license_object_url": "https://world.openfoodfacts.org/cgi/product_image.pl?code=4388844120334&id=2",
126+
"license_author_url": "https://world.openfoodfacts.org/photographer/twoflower",
127+
"license_derivative_source_url": ""
124128
},
125129
"order": 1,
126130
"amount": "100.00"
@@ -162,14 +166,18 @@
162166
"image": {
163167
"id": 5,
164168
"uuid": "81c07bef-02ea-47ba-a18e-d7388dc2bc01",
165-
"ingredient_id": "10065",
169+
"ingredient_id": 10065,
166170
"ingredient_uuid": "b0c47fa4-3898-4705-b8f5-184877d50b78",
167171
"image": "http://localhost:8000/media/ingredients/b0c47fa4-3898-4705-b8f5-184877d50b78/81c07bef-02ea-47ba-a18e-d7388dc2bc01.jpg",
168172
"last_update": "2022-08-09T15:45:58.511169+02:00",
169173
"size": 43397,
170174
"source_url": "",
171175
"license": 1,
172-
"license_author": "tacinte"
176+
"license_author": "tacinte",
177+
"license_title": "Photo",
178+
"license_object_url": "https://world.openfoodfacts.org/cgi/product_image.pl?code=4388844120334&id=2",
179+
"license_author_url": "https://world.openfoodfacts.org/photographer/twoflower",
180+
"license_derivative_source_url": ""
173181
},
174182
"order": 1,
175183
"amount": "200.00"

0 commit comments

Comments
 (0)