pizzas

Get pizza by ID

Retrieves a specific pizza by its ID

get/pizzas/{id}

Request

  • Base URL
    <PIZZA_API_HOST>/api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    <PIZZA_API_HOST>/api/pizzas/{id}
  • Auth
    none declared

Path parameters

idstring required

ID of the pizza

Response

Pizza details found

idstring required
category'pizza' | 'drink' | 'side' | 'topping' required
namestring required
descriptionstring required
pricenumber float required

Example response

{
  "id": "pizza-1",
  "name": "Margherita Pizza",
  "description": "Classic pizza with tomato sauce and mozzarella",
  "price": 12.99
}

Changes

No recorded changes to this operation across all 4 revisions of this API.