API for placing orders, specifying condiments, and managing payments at a hot dog stand. Includes functionality to retrieve the menu.
- Server 1:https://hotdog.example.com/api/v1
Main server
API for placing orders, specifying condiments, and managing payments at a hot dog stand. Includes functionality to retrieve the menu.
Main server
Operations related to managing hot dog orders
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