orders
Get all orders
Changed onReturns a list of all orders in the system
get/orders
Request
- Base URL<BURGER_API_HOST>/api (relative, and the document was published on a file host, not at the API’s origin)
- URL<BURGER_API_HOST>/api/orders
- Authnone declared
Query parameters
userIdstring
Filter orders by userId
statusstring
Filter orders by status (comma-separated for multiple, e.g. pending,ready)
laststring
Filter orders created in the last X minutes/hours (e.g. 60m, 2h)
Response
List of orders
Example response
[
{
"items": [
{
"burgerId": "burger-1",
"quantity": 1,
"extraToppingIds": [
"topping-1",
"topping-2"
]
}
]
}
]Changes
- info
added the optional property
/to the response with the status
- info
- warning
removed the optional property
/from the response with the status
- warning