User Story6: Post/ Update item
As a seller, I would like to post/update a product
Given the product information, when a post/update request is sent, then the backend will validate the product information, saving the post information into the backend.
Estimated Time: 8p*h
Github Issue:
Use Case: Review My Offers
Actors: Seller, Product Database
Precondition:N/A
Basic Path:
The seller click on the new Post button, and the front end pop up the edition page
The seller enter the product information, and click on the Post
The frontend send the add product request to the backend
The backend add the data into the product database and respond
The frontend received the success response and display the new product page
The seller click on the “Edit button” on the product page , and the front end pop up the edition page
The seller update the product information, and click on the Post
The frontend send the modify product request with product id to the backend
The backend update the data into the product database and respond
The frontend received the success response and display the product page
Alter Path:
Pop up the error message and stay in the edition page, if the add/update fails.
User Story6: Post/ Update item As a seller, I would like to post/update a product Given the product information, when a post/update request is sent, then the backend will validate the product information, saving the post information into the backend.
Estimated Time: 8p*h Github Issue:
Use Case: Review My Offers Actors: Seller, Product Database Precondition:N/A Basic Path: The seller click on the new Post button, and the front end pop up the edition page The seller enter the product information, and click on the Post The frontend send the add product request to the backend The backend add the data into the product database and respond The frontend received the success response and display the new product page The seller click on the “Edit button” on the product page , and the front end pop up the edition page The seller update the product information, and click on the Post The frontend send the modify product request with product id to the backend The backend update the data into the product database and respond The frontend received the success response and display the product page
Alter Path: Pop up the error message and stay in the edition page, if the add/update fails.