Please enable JavaScript.
Coggle requires JavaScript to display documents.
Canteen- Backend - Coggle Diagram
Canteen- Backend
Controller
order
orderById :!!:
create
listOrder
updateOrderStatus
getOrderStatus
payment
category
create
categoryId
read
update
remove
getAll
user
getUserById
read
update
userPurchaseList
pushOrderInPurchaseList
auth
signUp
signin
signout
isAdmin :!!:
isAuthenticated :!!:
check for token :!!:
isTeacher :!!:
product(food)
photo :!!:
maintainStock :!!:
create
getProductById :!!:
read
remove
update
listCategories
list :question:
Models
User
Product
Category
Order
Routes
Product
productId PARAM
/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 (parameterExtractor)
/category/:categoryId GET (read)
/category/:categoryId/:userId PUT (update)
/category/:categoryId/:userId DELETE (remove)
/categories GET (getAll)
Order
/order/create/:userId POST (create)
orderById PARAMS
/order/list/:userId GET
/order/status/:userId GET
/order/:orderId/status/:userId PUT
User
read-get
update-put
parameterExtracter-params
purchaseList-get
Authentication
signup-post
signin-post
signout-get
Payment System