nss-day-cohort-60 / ye-old-taco-bell-labs

1 stars 0 forks source link

As a client, I should be able to order a product #11

Open stevebrownlee opened 1 year ago

stevebrownlee commented 1 year ago

Given a client wants submit an order for a product When the client sends a POST request to /orders Then the API should create a new dictionary in the list of orders And the API should respond with a JSON representation of the order and a status code header of 201

Here are the properties of an order

Given a client wants submit an order for a product When the client sends a POST request to /orders And any of the required properties are missing Then the API should respond with an empty response body and a status code header of 400

shaibird commented 1 year ago

mmmm tacos!