CSCI-GA-2820-FA24-001 / wishlists

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

Create an Item in a Wishlist #12

Open ahighmoon opened 2 weeks ago

ahighmoon commented 2 weeks ago

As a customer I need to add new item to my wishlist So that I can keep track of what I want to buy and purchase them later

Details and Assumptions

Given a customer sends a POST request to "/wishlists/{wishlistId}/items" with a non-existent wishlistId When the system cannot find the specified wishlist Then the system should return a 404 Not Found error with an appropriate error message

Given a customer sends a POST request to "/wishlists/{wishlistId}/items" with an item that already exists in the wishlist When the system detects a duplicate item Then the system should return a 409 Conflict error with an appropriate error message

Given a customer sends a POST request to "/wishlists/{wishlistId}/items" with invalid or incomplete item data When the system validates the request body Then the system should return a 400 Bad Request error with details about the validation errors