[SHOP-6] Create a Wishlist endpoint Created: 27/Feb/20  Updated: 27/Mar/20  Resolved: 27/Mar/20

Status: Closed
Project: Shop
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Story Priority: Neutral
Reporter: Adrien Manzoni Assignee: Riste Drangovski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: REST API
Sprint: Scrum Sprint 1

 Description   
POST /wishlist If the user is anonymous (unable to fetch the user from the underlying http session), then it creates an anonymous wish list.
Otherwise, it create a wish list linked to the user id.
 
Return a cookie storing the wish list id
false
GET /wishlist Return the wish list
The wish list id is taken from the cookie
true
DELETE /wishlist Delete the wish list
The wish list id is taken from the cookie
false
POST /wishlist/item Update the wish list by adding the wish list item present in the body of the request
The wish list id is taken from the cookie
false
DELETE /wishlist/item/{itemId} Update the wish list by deleting the given wish list item
The wish list id is taken from the cookie
false

Generated at Mon Feb 12 10:48:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.