Get groups and products
This API method retrieves all groups and products for a given store
https://api.e-food.nl/v2/group/product/{cityName}/{storeName}
GET Request
The request contains the store and city name as identifier.
| Field name | Type | Required | Description |
|---|---|---|---|
CityName |
string | Y | The name of the city |
StoreName |
string | Y | The name of the store |
Sample request
This sample request fetches all groups and products for store bar in city foo
https://api.e-food.nl/v2/group/product/foo/bar
Response
The response contains a collection of ProductMainGroupDto if any groups are present. Every group can hold a collection of ProductSubGroupDto, or a collection of SimpleProductDto.
Sample response
[
{
"urlName": "friet-test",
"name": "Friet",
"description": null,
"childrenType": 0,
"leaf": false,
"children": [
{
"urlName": "groot-friet",
"name": "Groot Friet",
"description": null,
"imageUrl": "http://example.org/images/2-635792276686125469.jpg",
"leaf": true,
"products": [
{
"id": 1234,
"productNr": "ABC0000000270",
"shortName": "Grote friet",
"longName": null,
"price": 250,
"priceDisplay": "€ 2,50",
"imageUrl": "http://example.org/Skins/mySkin/default.png",
"imageUrlLarge": "http://example.org/Skins/mySkin/default.png",
"isAddition": false,
"menuId": 1783,
"leaf": true,
"sectionId": null,
"subgroupId": 120,
"mainGroupId": 10,
"inMenu": [],
"allergens": []
}
]
}
]
}
]