GET /shops/search
Append the querystring with following properties to the URL.
A dictionary with fields
Field | Type | Description |
---|---|---|
query | String | Optional. A String value |
coordinates | Coordinates | Optional. Coordinates of a place in the world |
distance | Int | Optional. An integer value |
sortBy | String | Optional. String. Should be equal to 'distance' |
GET /shops/search?query=...&coordinates%5Blatitude%5D=1%2C54361&coordinates%5Blongitude%5D=0%2C45645&distance=13&sortBy=distance HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.0
Accept-Language: en-US,en;q=0.5
Array of Shop.detailed: [Shop.detailed]
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. |
currency | Currency | 3 letter ISO 4217 currency name (string) |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 24514
[
{
"id": 14,
"name": "Mr. Mortimer Carter V",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"offers": [
{
"id": 18,
"name": "...",
"items": [
{
"type": "product",
"item_id": 16,
"percentage": 11,
"minimum": 18
},
{
"type": "product",
"item_id": 10,
"percentage": 14,
"minimum": 10
},
{
"type": "product",
"item_id": 19,
"percentage": 18,
"minimum": 12
}
]
},
{
"id": 19,
"name": "...",
"items": [
{
"type": "product",
"item_id": 15,
"percentage": 19,
"minimum": 12
},
{
"type": "product",
"item_id": 15,
"percentage": 19,
"minimum": 15
},
{
"type": "product",
"item_id": 12,
"percentage": 16,
"minimum": 14
}
]
},
{
"id": 19,
"name": "...",
"items": [
{
"type": "product",
"item_id": 16,
"percentage": 13,
"minimum": 15
},
{
"type": "product",
"item_id": 16,
"percentage": 17,
"minimum": 14
},
{
"type": "product",
"item_id": 11,
"percentage": 18,
"minimum": 19
}
]
}
],
"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": false,
"allow_orders": true,
"delivery_use_intervals": true,
"categories": [
{
"id": 11,
"name": "Milford Carroll",
"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": false
},
"seo": {
"title": {
"en": "Quibusdam quis odit sit quibusdam optio libero est."
},
"description": {
"en": "Voluptatem facilis placeat iste corporis. Laboriosam quam corrupti expedita quaerat minus id saepe. Neque facilis illo cumque illum omnis quibusdam ut. Excepturi quod expedita optio sit corporis."
},
"url": {
"en": "http://www.green.com/quos-voluptas-similique-omnis-ut-voluptatem-qui"
}
}
},
{
"id": 14,
"name": "Dimitri Zieme",
"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": false
},
"seo": {
"title": {
"en": "At suscipit magni distinctio quidem et consequatur."
},
"description": {
"en": "Eos quo dignissimos ea quo aut. Amet fugiat itaque sint nesciunt voluptas a. Aut sed soluta consequuntur cum nihil."
},
"url": {
"en": "http://www.pagac.biz/"
}
}
},
{
"id": 15,
"name": "Stephen Stoltenberg",
"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": false
},
"seo": {
"title": {
"en": "Illo magni eligendi velit autem quae fuga quaerat incidunt alias eos commodi."
},
"description": {
"en": "Eos expedita est sit. Quia repellendus iure eveniet et enim. Id est quod nihil excepturi architecto assumenda."
},
"url": {
"en": "http://reichert.com/occaecati-vitae-placeat-eveniet-suscipit-reiciendis-harum-provident"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
14,
10,
14
]
},
{
"name": "...",
"category_ids": [
13,
13,
18
]
},
{
"name": "...",
"category_ids": [
14,
15,
17
]
}
],
"currency": "EUR"
},
{
"id": 15,
"name": "Clara Turner",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"offers": [
{
"id": 14,
"name": "...",
"items": [
{
"type": "product",
"item_id": 11,
"percentage": 18,
"minimum": 16
},
{
"type": "product",
"item_id": 13,
"percentage": 18,
"minimum": 13
},
{
"type": "product",
"item_id": 11,
"percentage": 10,
"minimum": 16
}
]
},
{
"id": 11,
"name": "...",
"items": [
{
"type": "product",
"item_id": 18,
"percentage": 18,
"minimum": 19
},
{
"type": "product",
"item_id": 16,
"percentage": 19,
"minimum": 16
},
{
"type": "product",
"item_id": 19,
"percentage": 19,
"minimum": 14
}
]
},
{
"id": 19,
"name": "...",
"items": [
{
"type": "product",
"item_id": 16,
"percentage": 19,
"minimum": 16
},
{
"type": "product",
"item_id": 12,
"percentage": 15,
"minimum": 15
},
{
"type": "product",
"item_id": 14,
"percentage": 12,
"minimum": 17
}
]
}
],
"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": false,
"delivery_use_intervals": true,
"categories": [
{
"id": 19,
"name": "Prof. Sharon Kulas",
"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": "Quia doloremque quidem ut ex quibusdam."
},
"description": {
"en": "Voluptates placeat quisquam quidem facere. Et praesentium nostrum aut est qui nam. Id et corrupti quidem eum quis dolor."
},
"url": {
"en": "http://www.gottlieb.com/ut-est-quo-sit-unde-voluptatem"
}
}
},
{
"id": 17,
"name": "Deshawn Rice",
"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": "Ullam quos aut quis rerum iusto."
},
"description": {
"en": "Nobis est dolor et. Quo repellat optio repudiandae voluptate et neque earum."
},
"url": {
"en": "https://www.kuphal.net/sunt-alias-a-voluptatibus-voluptatibus-deserunt-ex"
}
}
},
{
"id": 11,
"name": "Ryley Denesik III",
"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": "Veritatis non officia voluptas enim quia."
},
"description": {
"en": "Facere voluptatem iste adipisci quam vero. Dignissimos autem dolores rem nisi placeat totam. Rerum ab laborum maxime."
},
"url": {
"en": "http://ortiz.com/sapiente-a-aut-in-exercitationem-voluptate-quas"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
19,
18,
19
]
},
{
"name": "...",
"category_ids": [
16,
15,
12
]
},
{
"name": "...",
"category_ids": [
10,
19,
19
]
}
],
"currency": "EUR"
},
{
"id": 13,
"name": "Jamarcus Williamson",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"offers": [
{
"id": 17,
"name": "...",
"items": [
{
"type": "product",
"item_id": 16,
"percentage": 13,
"minimum": 15
},
{
"type": "product",
"item_id": 19,
"percentage": 11,
"minimum": 18
},
{
"type": "product",
"item_id": 12,
"percentage": 12,
"minimum": 18
}
]
},
{
"id": 18,
"name": "...",
"items": [
{
"type": "product",
"item_id": 18,
"percentage": 18,
"minimum": 19
},
{
"type": "product",
"item_id": 15,
"percentage": 15,
"minimum": 14
},
{
"type": "product",
"item_id": 14,
"percentage": 18,
"minimum": 16
}
]
},
{
"id": 19,
"name": "...",
"items": [
{
"type": "product",
"item_id": 19,
"percentage": 19,
"minimum": 16
},
{
"type": "product",
"item_id": 19,
"percentage": 15,
"minimum": 18
},
{
"type": "product",
"item_id": 16,
"percentage": 14,
"minimum": 15
}
]
}
],
"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": false,
"delivery_use_intervals": true,
"categories": [
{
"id": 12,
"name": "Marcellus Renner",
"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": false
},
"seo": {
"title": {
"en": "Nesciunt ad sit tenetur voluptatem."
},
"description": {
"en": "Officia natus sequi nostrum tempora. Enim fuga sunt porro placeat odio."
},
"url": {
"en": "http://conroy.org/"
}
}
},
{
"id": 10,
"name": "Adaline Von",
"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": "At minus quos voluptatem quo dignissimos recusandae corrupti ut."
},
"description": {
"en": "Quia deserunt fuga fugit. Eum ex fugit cum consequatur. Eaque odio voluptatem voluptas dicta eaque blanditiis. Ut deserunt dolor hic."
},
"url": {
"en": "http://www.grimes.com/ut-et-explicabo-sapiente-odio"
}
}
},
{
"id": 13,
"name": "Ian Weimann Jr.",
"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": "Consequatur molestiae necessitatibus optio praesentium quod."
},
"description": {
"en": "Mollitia magni quod deleniti sit consequatur eveniet. Quo voluptas non cumque dolorum."
},
"url": {
"en": "http://www.carroll.com/neque-aut-magni-voluptas-saepe-culpa.html"
}
}
}
],
"category_groups": [
{
"name": "...",
"category_ids": [
16,
19,
10
]
},
{
"name": "...",
"category_ids": [
17,
17,
11
]
},
{
"name": "...",
"category_ids": [
15,
11,
13
]
}
],
"currency": "EUR"
}
]