Please enable JavaScript.
Coggle requires JavaScript to display documents.
SELL T-SHIRT BACKEND (Routes (Product (userId [PARAM], productId [PARAM],…
SELL T-SHIRT BACKEND
Routes
Authentication
Sign-Up [POST]
Sign-Out [GET]
Sign-In [POST]
User
userId [PARAM]
userId [GET]
userId [PUT]
userPurchaseList ( userId [GET] )
Category
GET [GET]
GET ALL [GET]
CREATE [POST]
UPDATE [PUT]
categoryId [PARAM]
DELETE [DELETE]
userId [PARAM]
Product
userId [PARAM]
productId [PARAM]
CREATE [POST]
GET [GET]
PHOTO [GET]
UPDATE [PUT]
DELETE [DELETE]
LIST PRODUCT [GET]
LIST UNIQUE CATEGORIES [GET]
Order
getUserById [PARAM]
getOrderById [PARAM]
CREATE [POST]
GET ORDERS [GET]
GET ORDER STATUS [GET]
UPDATE ORDER [PUT]
Controllers
Authentication
Sign up
Sign In
Sign out
isAdmin [MW]
IsAuthorized [MW]
isSignedIn [MW]
User
getUserById [MW]
getUser
updateUser
userPurchaseList
pushOderInPurchaseList [MW]
Category
getAllCategory
createCategory
getCategory
updateCategory
getCategoryId [MW]
deleteCategory
Product
getProduct
getAllProducts
photo [MW]
deleteProduct
updateProduct
updateStock
createProduct
getProductById [MW]
getAllUniqueCategories
Order
getOrderById [MW]
createOrder
getAllOrders
getOrderStatus
updateStatus
Models
Product
Category
User
Order
PAYMENT
user.js
category.js
product.js
order.js
auth.js
auth.js
user.js
user.js
category.js
category.js
product.js
product.js
order.js
order.js