stern-devops-2020-inventory / inventory

The inventory resource keeps track of how many of each product we have in our warehouse. At a minimum it should reference a product and the quantity on hand. Check with the Product team for the format of the product id. Inventory could also track restock levels and the condition of the item (i.e., new, open box, used). Restock levels will help you know when to order more products. Being able to query products by their condition (e.g., new, used) could be very useful.
Apache License 2.0
0 stars 0 forks source link

Support Customer Orders #13

Closed azelenovsky closed 4 years ago

azelenovsky commented 4 years ago

As a User, I need the ability to remove products from inventory to place into a shopping cart. So that I can ensure I do not run out of inventory.

Assumptions:

The SKU of the product and quantity is passed to the API 
A call to POST /inventory should update inventory in accordance to the value passed (positive to add, negative    to delete)
Inventory cannot be negative.

Acceptance Criteria:

When I call POST /Inventory I should see a JSON object with updated product inventory levels Inventory should be updated accordingly Cannot go negative.

npd271 commented 4 years ago

Andrey