Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.53 KB

File metadata and controls

55 lines (41 loc) · 1.53 KB

ECommerce Platform Spring Boot Backend

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.

Entity Relation Diagram

diagram

RESTful Endpoints

Base Url

  • localhost:8080

Authentication

  • 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

Products

  • 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.

Seller

  • 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.

Customer

  • 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.