GET /shops/@id
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | An integer value |
GET /shops/10 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.3.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
id | Int | Id of the shop |
name | String | Name of the shop (translated) |
address | Address.detailed | An address |
offers | [Offer.simple] | Array of Offer.simple |
images | [String: Image] | Dictionary of Image with keys of type String |
allow_comments | Bool | A boolean value |
allow_orders | Bool | A boolean value |
delivery_use_intervals | Bool | A boolean value |
categories | [Category.simple] | Array of Category.simple |
category_groups | [CategoryGroup] | List of category groups. The ids refer to a category in the categories field. Categories without a CategoryGroup should also get displayed. |
hours | HoursInfo | Information about opening hours and other delivery method hours |
contact | Contact | Contact details of a shop |
messages | [Message] | You are required to keep track of the messages the user saw. When you receive new messages, you should indicate this in the app with a bubble icon (e.g. red circle with number of new messages) |
info | [Message] | Same as messages, but you shouldn't notify the user when this changes or is received for the first time |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 11330
{
"id": 16,
"name": "Drew Beier MD",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"offers": [
{
"id": 15,
"name": "...",
"items": [
{
"type": "product",
"item_id": 11,
"percentage": 17,
"minimum": 13
},
{
"type": "product",
"item_id": 18,
"percentage": 17,
"minimum": 15
},
{
"type": "product",
"item_id": 10,
"percentage": 13,
"minimum": 13
}
]
},
{
"id": 14,
"name": "...",
"items": [
{
"type": "product",
"item_id": 18,
"percentage": 15,
"minimum": 19
},
{
"type": "product",
"item_id": 13,
"percentage": 16,
"minimum": 13
},
{
"type": "product",
"item_id": 13,
"percentage": 13,
"minimum": 18
}
]
},
{
"id": 18,
"name": "...",
"items": [
{
"type": "product",
"item_id": 12,
"percentage": 11,
"minimum": 12
},
{
"type": "product",
"item_id": 18,
"percentage": 18,
"minimum": 11
},
{
"type": "product",
"item_id": 14,
"percentage": 18,
"minimum": 10
}
]
}
],
"images": {
"avatar": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
},
"allow_comments": true,
"allow_orders": true,
"delivery_use_intervals": false,
"categories": [
{
"id": 16,
"name": "Addie Feil",
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
"seo": {
"title": {
"en": "Temporibus nihil autem quia omnis animi ut."
},
"description": {
"en": "Autem nulla aut iusto. Recusandae totam et quia dolor illo in. Ipsam similique iusto sed culpa voluptatem corporis atque."
},
"url": {
"en": "http://king.org/quo-commodi-recusandae-quia"
}
}
},
{
"id": 13,
"name": "Euna Green",
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
"seo": {
"title": {
"en": "Sit ut dolores est impedit ut sint non ratione ut est."
},
"description": {
"en": "Non debitis vero est omnis sunt. Distinctio aut tempora ut ea animi culpa. Quis modi aliquam eum."
},
"url": {
"en": "http://www.bergstrom.net/aut-quisquam-accusantium-numquam-velit-sunt-et-libero"
}
}
},
{
"id": 16,
"name": "Marianne Ward IV",
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
"seo": {
"title": {
"en": "Libero est fugit quo ratione quisquam repellat voluptatem quo cum omnis."
},
"description": {
"en": "Aut delectus et suscipit et magnam quae cumque. At et ut cupiditate velit earum. Quis est et non dolore eos rerum. Sint occaecati odio sed."
},
"url": {
"en": "http://www.runolfsdottir.org/eos-magni-quo-iusto-recusandae-dolorem"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
19,
15,
18
]
},
{
"name": "...",
"category_ids": [
19,
17,
13
]
},
{
"name": "...",
"category_ids": [
19,
16,
13
]
}
],
"hours": {
"open": [
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
}
],
"takeout": [
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
}
],
"delivery": [
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
}
],
"latch": [
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
},
{
"start": 1,
"end": 1,
"times": [
"...",
"...",
"..."
]
}
]
},
"contact": {
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"telephone": "+32 475 00 00 00",
"vat": "BE0123.456.789",
"social": {
"facebook": "https://example.com",
"twitter": "https://example.com",
"snapchat": "https://example.com",
"instagram": "https://example.com",
"pinterest": "https://example.com",
"youtube": "https://example.com"
},
"website": "https://example.com",
"email": "example@domain.com"
},
"messages": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
],
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
}