toppings

Get topping by ID

Retrieves a specific topping by its ID

get/toppings/{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/toppings/{id}
  • Auth
    none declared

Path parameters

idstring required

ID of the topping

Response

Topping 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.