This is a fork of jeremystucki/coop An unofficial Coop Restaurant API
The api is hosted at ... .
GET /v1/locations
latitude and longitude | query | limit | description |
---|---|---|---|
- | - | - | Get all locations |
X | - | optional | Get all locations, sorted by distance |
- | X | optional | Get all locations, sorted by relevance |
{
"results": [
{
"id": 2257,
"name": "Kriens Schappe Bistro",
"location": {
"coordinates": [
<long>,
<lat>
],
"address": {
"city": "Kriens",
"house_number": "2",
"street": "Hobacherweg",
"zip": 6010
}
}
}, ...
]
}
GET /api/v1/locations/<id>
{
"id": 2524,
"name": "Baden",
"location": {
"coordinates": [
<long>,
<lat>
],
"address": {
"city": "Baden",
"house_number": "28",
"street": "Bahnhofstrasse",
"zip": 5401
}
}
}
GET /v1/locations/<id>/menus
GET /v1/locations/<id>/menus/today
GET /v1/locations/<id>/menus/<timestamp>
// Midnight GMT
{
"results": [
{
"menu": [
"Spare-Ribs",
"BBQ-Sauce",
"Baked Potatoes",
"Maiskolben"
],
"price": 13.95,
"timestamp": 1493078400.0,
"title": "Wochenmen\u00fc"
}, ...
]
}
coop.ch
This is fork of jeremystucki/coop