GET
/
orders
/
{id}
/
dishes
curl --request GET \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes
{
  "results": [
    {
      "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"
    }
  ],
  "total_results": 1
}

Path Parameters

id
string
required

The unique dish identifier generated when the dish was created.

Query Parameters

sort
string

Sort the list in the response by a specific property. Used with the order parameter.

order
string

Set the sort order to asc for ascending or desc for descending. Must be used with the sort parameter.

fields
string

Restrict which properties are returned in the response.

filter
string

Filter the response to include only items that have properties equal to the specified value.

Example:

"created_at.gt~2024-05-07|station.eq~hot"

limit
integer

Limit the number of objects in the response.

Required range: x <= 30
offset
integer

Offsets the start of the list by the set value. Defaults to 0.

Example:

0

Response

200
application/json

Request successful

The response is of type object.

GET
/
orders
/
{id}
/
dishes
curl --request GET \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes
{
  "results": [
    {
      "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"
    }
  ],
  "total_results": 1
}

Path Parameters

id
string
required

The unique dish identifier generated when the dish was created.

Query Parameters

sort
string

Sort the list in the response by a specific property. Used with the order parameter.

order
string

Set the sort order to asc for ascending or desc for descending. Must be used with the sort parameter.

fields
string

Restrict which properties are returned in the response.

filter
string

Filter the response to include only items that have properties equal to the specified value.

Example:

"created_at.gt~2024-05-07|station.eq~hot"

limit
integer

Limit the number of objects in the response.

Required range: x <= 30
offset
integer

Offsets the start of the list by the set value. Defaults to 0.

Example:

0

Response

200
application/json

Request successful

The response is of type object.