nss-cohort-40 / bangazon-ecommerce-api-silly-walkers-ecommerce-api

bangazon-ecommerce-api-silly-walkers-ecommerce-api created by GitHub Classroom
0 stars 0 forks source link

"Server/ Client" User can remove a product listing #19

Open JoeShep opened 4 years ago

JoeShep commented 4 years ago

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

tstrotherIV commented 4 years ago

What (Client Side)

-->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.

tstrotherIV commented 4 years ago

How (Client Side)

• add a button next to each product, when clicked, calls a delete function.

tstrotherIV commented 4 years ago

Dependency (Client Side)

• Will require Product Id • Fetch call to the API to execute a DELETE

tstrotherIV commented 4 years ago

What (Server Side)

• When the client-side sends the DELETE request, the Products DELETE method will be executed •That product will be removed from the API database

tstrotherIV commented 4 years ago

How (Server Side)

•When the API received the DELETE fetch call from the Client side, the DELETE method on the Product view will be executed.

tstrotherIV commented 4 years ago

Dependency (Server Side)

•Product Table •Customer Id