Skip to content

This is a Spring Boot-based backend for an e-commerce platform. It provides RESTful APIs for customer and product management, as well as order processing.

Notifications You must be signed in to change notification settings

nadimnesar/e-commerce-platform-spring-boot-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a Spring Boot-based backend for an e-commerce platform. It provides RESTful APIs for customer and product management, as well as order processing.

Topics

Resources

Stars

Watchers

Forks

Languages