Download POSTMAN collection here
Our project bases on an ecommerce, where people can buy any product they want; within the platform, these users can look for their products, whether by title/description or category. Admins can access to their product management.
If you want to get token as admin, use the following credentials:
Email: [email protected]
Password: 123
NOTE:
- 🔐 User has to be Admin
- 🔒 Authentication is needed
- 🔓 Authentication is not needed
- 🔐 Create and modify products
PUT /api/productandPOST /api/product/{id} - 🔐 Change status for orders
PUT /api/order - 🔐 Create and modify categories
PUT /api/categoryandPOST /api/category/{id}
- 🔓 Search product
POST /api/productorGET /api/product?keyword={something}
Note: To create user before you need to get the list category and productStatus - 🔓 Get product's info in detail
GET /api/product/{id} - 🔒 Add product to current order by creating an order item
POST /api/order-item - 🔒 Modify and delete order item
[PUT, DELETE] /api/order-item/{id} - 🔒 Create, get, modify and delete orders
[GET, PUT, DELETE] /api/order/{id}andPOST /api/order - 🔒 Create, get, modify and delete own addresses
[GET, PUT, DELETE] /api/address/{id}andPOST /api/address - 🔒 Create, get, modify and delete users
[GET, PUT, DELETE /api/userandPOST /api/address - 🔓 List products by category
GET /api/category/{name} - 🔓 List categories by product
GET /api/category/{productId} - 🔓 List categories
GET /api/product-category/product/category/{name} - 🔓 Login
POST /api/auth/token - 🔒 Upload image
POST /api/file
To authenticate we need get the access token, then we have to add it in the request header:
Authorization: Bearer {accessToken}'