Dishes
Create a dish
Use this method to create a dish and define the dish’s details.
The client app will display the name
, description
, and price
and will use the category
to determine where to display the dish in the menu. The server will check the dish’s ingredient_id
to ensure essential ingredients are in stock (if not in stock, the dish will be disabled in the client app).
The kitchen display system will use the station
, preparation_time
, and ingredients
array when prioritizing and prepping the dish.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The request body to create a new dish in the client app requires the following properties:
- category
- description
- image_name
- ingredients
- ingredients.ingredient_id
- ingredients.is_essential
- preparation_time
- name
- price
- station
The body is of type object
.
Response
201
application/json
Dish successfully created
The response is of type object
.