OrderRequest
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Creates a new hot dog order.
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Order created successfully
Unique identifier for the order
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Status of the order
Allowed values:pendingconfirmedcancelledcompleted
Total amount of the order
Returns a list of all orders with pagination.
Maximum number of items to return
Default:20
>= 1<= 100
Number of items to skip for pagination
Default:0
>= 0
Successful operation
Example:{"id":"5fa7b5a7-3a0a-4b8a-8b3a-4b8a5b5a7b5a","items":[{"item_name":"Hot Dog","quantity":2,"condiments":["mustard","relish"]}],"status":"pending","total_amount":10}
Retrieves details of a specific order.
ID of the order to retrieve
Successful operation
Unique identifier for the order
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Status of the order
Allowed values:pendingconfirmedcancelledcompleted
Total amount of the order
Updates an existing order.
ID of the order to update
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Order updated successfully
Unique identifier for the order
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Status of the order
Allowed values:pendingconfirmedcancelledcompleted
Total amount of the order
Cancels an order.
ID of the order to cancel
Order cancelled successfully