Closed lemadmax closed 2 years ago
Could we break Create/Read/Update/Delete to four different stories so each story just focuses on one part?
Could we break Create/Read/Update/Delete to four different stories so each story just focuses on one part?
Agreed, this story is only for update. Need other 3 too.
Changed details and acceptance since according to REST conventions (given in lecture), PUT must be idempotent (calling same PUT request multiple times should be the same as calling it once). Hence instead of an operation parameter (add/delete), we use a quantity parameter for the amount we want to update to.
As a user
I need to be able to update my shopcart
So that I can store exactly the things I want in my shopcart
Details and Assumptions
Expecting new item, quantity and status code 200 as well as the if update successful; expect status code code 404 if shopcart not found; expect status code 406 if quantity is not a non-negative integer.
Acceptance Criteria