CSCI-GA-2820-FA24-003 / shopcarts

NYU DevOps Shopcarts Service Fall 2024
Apache License 2.0
0 stars 0 forks source link

Add Item to Shopcart #1

Open yuhao0308 opened 1 week ago

yuhao0308 commented 1 week ago

As a customer, I need to be able to add a product to my shopcart by specifying the product ID, quantity, and product description, So that I can collect the products I wish to purchase in one place.

Assumptions:

Acceptance Criteria:

Given that a customer has an active shopcart,
When they add a product with a valid product ID, description, and quantity,
Then the product is added to the shopcart, and the shopcart reflects the new product.

Given that a product is already in the cart,
When the customer adds the same product,
Then the quantity of the product is updated in the shopcart.
safipatel commented 3 days ago

Added API endpoint that this covers for clarity