Create New Order
POST {{server_url}}/order
User will send a structure of data to place an online order
Request Body
{"flavors"=>[{"flavorName"=>"Strawberry", "count"=>1}, {"flavorName"=>"Chocolate", "count"=>1}], "toppings"=>[{"toppingName"=>"Hot Fudge", "count"=>1}, {"toppingName"=>"Sprinkles", "count"=>2}, {"toppingName"=>"Whipped Cream", "count"=>1}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-mock-match-request-body | boolean |
RESPONSES
status: Created
{"flavors":[{"flavorName":"Strawberry","count":1},{"flavorName":"Chocolate","count":1}],"toppings":[{"toppingName":"Hot Fudge","count":1},{"toppingName":"Sprinkles","count":2},{"toppingName":"Whipped Cream","count":1}]}