As a Promotions Manager
I need the ability to delete a promotion. from the given set of promotions
So that the deleted promotions cannot be used to redeem an offer on a product or the store.
Details and Assumptions
The promotion is deleted through the assigned ID and removed from the Postgres database. If the deal is searched for in the list resource section, after deletion, the promotion should not be displayed.
Endpoint should be /delete
Acceptance Criteria
Given the promotions database
When I delete a promotion with a specific id
Then the promotion should not be visible when a get request is made to list the current promotions
As a Promotions Manager I need the ability to delete a promotion. from the given set of promotions So that the deleted promotions cannot be used to redeem an offer on a product or the store.
Details and Assumptions The promotion is deleted through the assigned ID and removed from the Postgres database. If the deal is searched for in the list resource section, after deletion, the promotion should not be displayed. Endpoint should be /delete
Acceptance Criteria Given the promotions database When I delete a promotion with a specific id Then the promotion should not be visible when a get request is made to list the current promotions