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" Product listing can be restocked #29

Open JoeShep opened 4 years ago

JoeShep commented 4 years ago

Given a user needs to sell more of an existing product When the user is viewing the details for that product Then a hyperlink should appear next to the quantity remaining field labeled "Update"

Given user is viewing the details of a product s/he is selling When the "Update" hyperlink is clicked Then the user is able to update the quantity of the product

tstrotherIV commented 4 years ago

What (Client-Side)

-->My Products menu --> list of products for that user is displayed -->product details (individual product)

• An update button needs to be added next to each product quantity in the product details.

tstrotherIV commented 4 years ago

How (Client-Side)

• add a button next to each product quantity section, when clicked, calls a form to take in a new value for quantity, then and update button.

tstrotherIV commented 4 years ago

Dependency (Client-Side)

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

tstrotherIV commented 4 years ago

How (Server Side)

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

tstrotherIV commented 4 years ago

Dependency (Server Side)

•Product Table •Customer Id