🌭 Hotdog stand

Hot Dog Stand API

1.0.0OAS 3.1

API for placing orders, specifying condiments, and managing payments at a hot dog stand. Includes functionality to retrieve the menu.

API Base URL
  • Server 1:https://hotdog.example.com/api/v1

    Main server

Orders

Operations related to managing hot dog orders

Place a new order

Creates a new hot dog order.

post
https://hotdog.example.com/api/v1/orders

Body

application/json

OrderRequest

itemsarray[object]

Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}

Show Child Parameters

Response

application/json

Order created successfully

Order

idstring(uuid)

Unique identifier for the order

itemsarray[object]

Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}

Show Child Parameters
statusstring

Status of the order

Allowed values:pendingconfirmedcancelledcompleted

total_amountnumber(float)

Total amount of the order

post/orders

Body

{ "items": [ { "item_name": "Hot Dog", "quantity": 2, "condiments": [ "mustard", "relish" ] } ] }
 
application/json