Appetizers
Main Course
Dessert
Drinks
category
.
Endpoint: GET /dishes
200 okay
status code and a response body containing the list of dishes in that category.
Each dish object includes the following properties:
Property | Type | Description |
---|---|---|
id | string | The dish id (required for calls later in this flow) |
created_at | string | The date and time the dish was created. Uses ISO 8601 standard. Ex: 2025-04-05T14:55:03.824Z |
updated_at | string | The date and time the dish was most recently updated. Uses ISO 8601 standard. Ex: 2025-04-05T14:55:03.824Z |
name | string | The name of the dish. |
description | string | The long-text description of the dish. |
category | enum string | The category the dish belongs to. Values: Appetizers , Main Course , Dessert , and Drinks . |
preparation_time | integer | The time it takes to prepare the dish, in minutes. |
price | number | The price of the dish. |
image_name | string | The name of the image associated with the dish, if available. |
station | enum string | The name of the station the dish is prepared at. Values: hot , cold , beverage |
ingredients | array of objects | Object that contains the ingredient details of the ingredients included in the dish. |
ingredients.ingredient_id | string | The id of the ingredient (required for calls later in this flow) |
ingredients.is_essential | boolean | Indicates whether this ingredient is required to make this dish or not. |
ingredients._id | string | Some other id for the ingredient |
name
and in_stock_qty
properties for each ingredient. You’ll need the ingredient_id
for each ingredient to check and you’ll filter the response to include only the in_stock_qty
and name
fields.
Endpoint: GET /ingredients/{id}
200 okay
status code and a response body that includes the requested resource.
in_stock_qty
of 0
should display as unavailable
in the client app so they cannot be added to an order.name
, price
, description
, and ingredients
properties for the selected dish. For this call, you’ll need the id
for the selected dish.
Endpoint: GET /dishes/{id}
200 okay
status code and a response body that includes the following properties:
Property | Type | Description |
---|---|---|
id | string | The dish id |
name | string | The name of the dish. |
description | string | The long-text description of the dish. |
price | number | The price of the dish. |
image_name | string | The name of the image associated with the dish, if available |
ingredients | array of objects | Object that contains the ingredient details of the ingredients included in the dish |
ingredients.ingredient_id | string | The id of the ingredient (required for calls later in this flow) |
ingredients.is_essential | boolean | Indicates whether this ingredient is required to make this dish or not. |
ingredients._id | string | Some other id for the ingredient |
Property | Type | Description |
---|---|---|
name | string | The name of the patron |
table_number | integer | The patron’s table number |
dish_ids | array of strings | The ids of all the dishes included in the order |
special_requests | string | The text the patron included in the special request field of their order |
scheduled_at | string | nullable The date and time the order is scheduled to arrive, using ISO 8601 format |
POST /orders
201 created
status code and a response body that includes the resource.