Please enable JavaScript.
Coggle requires JavaScript to display documents.
Ecommerce Backend - Coggle Diagram
Ecommerce Backend
Routes
Authentication
signup-post (register)
signin-post (login)
signout-get (logout)
Product
productId PARAM (parameter Extractor) :star:
/product/photo/:productid GET
/product/create/:userId POST
/product/:productId GET
/product/:productId/:userId DELETE
/product/:productId/:userId PUT
/products/categories GET
Category
/category/create/:userId POST (create)
categoryId PARAM (parameter Extractor) :star:
/category/:categoryId GET (read)
/category/:categoryId/:userId PUT (update)
/category/:categoryId/:userId DELETE (delete)
/categories GET (all)
Order
/order/create/:userId POST (to place order)
orderById PARAMS :star:
/order/list/:userId GET (to see all order)
/order/status/:userId GET (to see status of order)
/order/:orderId/status/:userId PUT (to see particular order status)
User
read-GET
update-PUT
parameterExtractor PARAM :star:
purchaselist- GET (to see all item)
Payment
Can use any payment method like paypal, stripe etc
Controllers
Authentication
signup
signin
signout
isAdmin (chek if it is admin or not)
isAuthenticated (check valid user or not)
cheker for token (JWT token for the user for particular duration of time while user login)
User
getUserById :star:
read
update
userPurchaseList
pushOrderInPurchaseList
Category
create
categoryById :star:
read
upadte
remove
getAll
Product
image ( to add image of the product)
maintainStock (like if user purchase then sold and current stock need to maintain)
create
getProductById
remove
update
listCategories
list
read
Order
orderById
create
listOrder
updateOrderStatus
getOrderStatus
Payment
Models
product
category
User
order