Open JoeShep opened 4 years ago
-->My Products menu item --> list of products for that user is displayed
• A delete button needs to be added next to each product in the list.
• add a button next to each product, when clicked, calls a delete function.
• Will require Product Id • Fetch call to the API to execute a DELETE
• When the client-side sends the DELETE request, the Products DELETE method will be executed •That product will be removed from the API database
•When the API received the DELETE fetch call from the Client side, the DELETE method on the Product view will be executed.
•Product Table •Customer Id
Given the user is authenticated When the user clicks on the My Products hyperlink in the navigation bar Then the user will be presented with a list of products they (s)he has posted for sale
Given the list of products is presented to the user When the user clicks the Delete button next to a posted product Then the product for sale is removed from the system