This is a scalable backend for an e-commerce platform using Spring Boot. It provides a comprehensive set of APIs to manage essential functionalities of an online e-commerce store.
- localhost:8080
POST /api/auth/register
- Register as a customer
POST /api/auth/seller/register
- Register as a seller
POST /api/auth/login
- Login and get new JWT token
GET /api/products/all?pageNo={}&limit={}
- Get all products with pagination.
GET /api/products/category/{categoryName}?pageNo={}&limit={}
- Get all products by category name with pagination.
GET /api/products/{productId}
- Get product by id.
GET /api/products/seller/{sellerId}?pageNo={}&limit={}
- Get all products by seller id.
POST /api/seller/addProduct
- Add a new product, can access by only seller.
GET /api/seller/products
- Show my products, can view own products only.
PUT /api/seller/updateProduct?id={}
- Update a product by id, can update own product only.
- Delete a product by id, can delete own product only.
- Update address, without address can't order.
- Add to cart by product id.
- Update from cart by product id.
- Remove from cart by product id.
- Get Cart Details
- Place order, all iteams from cart.
- Cancel order by id.
- Get all orders, can view own orderes only.