POST
/
dishes
{
  "id": "674d0bf5c28b69001f8e03a1",
  "created_at": "2024-04-22T10:00:00Z",
  "name": "Risotto alla Milanese",
  "description": "A description of the resource.",
  "category": "Main Course",
  "image_name": "burger",
  "ingredients": [
    {
      "ingredient_id": "66294b2a4475a41f3e709bc5",
      "is_essential": true
    },
    {
      "ingredient_id": "66294b2a4475a41f3e709bc6",
      "is_essential": true
    },
    {
      "ingredient_id": "66294b2a4475a41f3e709bc7",
      "is_essential": false
    }
  ],
  "preparation_time": 999,
  "price": 999,
  "station": "hot"
}

Authorizations

Authorization
string
header
required

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.