Restaurants
GET Read Restaurant /restaurants/read/:id
A restaurant typically reprenset a storefront for a specific location or a sublocation within a location.
For example a location San Jose can sell multiple products under different menus or storefronts, therefore we can create a restaurant for each.
Unlike locations which are restricted by your specific integration, restaruants are not restricted, and therefore any restaruant can be accessed by any location.
Response
| Name | Value | Description | Required |
|---|---|---|---|
id | string | Unique Id | true |
name | string | Restaurant Name | true |
Authorization Bearer Token
Token API_Key
Headers
Content-Type application/json
Example
import axios from "axios";
const headers = {
"Authorization": `Bearer ${your_api_key}`,
"Content-Type": "application/json"
};
const rootUrl = "https://us-central1-checklist-admin-d0013.cloudfunctions.net/api/v1";
const restaurantId = "restaurant-id";
const request = axios(rootUrl+`/restaurants/read/${restaurantId}`, { headers });
Body Response JSON
{
"id": "uuid",
"name": "Fresno Wings & Fries",
}