toppings

Get all toppings

Returns a list of all toppings

get/toppings

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
  • Auth
    none declared

Query parameters

categorystring

Filter toppings by category

Response

List of toppings

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.