As a customer
I need to delete an existing item from my wishlist
So that I can get rid of this item that I thought I would buy later, but I actually don't
Details and Assumptions
Create a REST API to delete an item from a wishlist
The client will provide the wishlist ID and the item ID
Query the database to remove provided item id from wishlist ID
If the item or wishlist ID does not exist, or if the item is not in the given wishlist, the system should return an error message
If the item is in the given wishlist, the system should update the database, remove the item from wishlish and return a success message
Acceptance Criteria
Given a new customer wants to remove an existing item in a given wishlist
When they send a DELETE request to "/wishlists/{id}/items/{id}"
Then the list should be saved in database with an updated collection with the specified product deleted.
As a customer I need to delete an existing item from my wishlist So that I can get rid of this item that I thought I would buy later, but I actually don't
Details and Assumptions
If the item is in the given wishlist, the system should update the database, remove the item from wishlish and return a success message
Acceptance Criteria