🍽️ Restaurant Access
Prerequisites
Section titled “Prerequisites”Before a restaurant appears in your list, its manager must first explicitly authorize your access from the Barestho back office. Without this agreement, the restaurant will not be visible, even if it is listed on the platform.
List Accessible Restaurants
Section titled “List Accessible Restaurants”Once agreement is obtained, you can retrieve the list of your accessible restaurants via:
GET /api/v1/partnership/restaurants/?limit=10&offset=0 HTTP/1.1Host: public.api.barestho.comAuthorization: Basic <base64(uuid:token)>Response 200 OK:
{ "count": 1, "next": null, "previous": null, "results": [ { "id": 4, "display_name": "Barestho Dev", "schema_name": "barestho", "address": "Boulevard Samain 67, 7000 Mons Belgium", "website": "http://www.barestho.com", "latitude": 50.4598685156642, "longitude": 3.9279265707227755, "timezone": "Europe/Brussels" } ]}