GET
/
ingredients
/
{id}
curl --request GET \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/ingredients/{id}
{
  "id": "674d0bf5c28b69001f8e03a1",
  "created_at": "2024-04-22T10:00:00Z",
  "updated_at": "2024-04-22T10:00:00Z",
  "name": "Carrot",
  "in_stock_qty": 3,
  "price": 999
}

Path Parameters

id
string
required

The unique ingredient identifier, generated when the ingredient was created.

Query Parameters

fields
string

Specify which properties to include in the response.

Response

200
application/json

Request successful

The response is of type object.

GET
/
ingredients
/
{id}
curl --request GET \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/ingredients/{id}
{
  "id": "674d0bf5c28b69001f8e03a1",
  "created_at": "2024-04-22T10:00:00Z",
  "updated_at": "2024-04-22T10:00:00Z",
  "name": "Carrot",
  "in_stock_qty": 3,
  "price": 999
}

Path Parameters

id
string
required

The unique ingredient identifier, generated when the ingredient was created.

Query Parameters

fields
string

Specify which properties to include in the response.

Response

200
application/json

Request successful

The response is of type object.