8000 GitHub - ohersi/ecommerce-backend
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ohersi/ecommerce-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce REST API

A REST API for a ecommerce clothing store.

API Documentation

Postman documentation for API endpoints and example responses.

API Reference

PRODUCTS

Get all products

  GET /api/v1/collection/all

Get product by ID

  GET /api/v1/products/${id}
Parameter Type Description
id string Required. ID of product to fetch

Get product by name

  GET /api/v1/allproducts/${name}
Parameter Type Description
name string Required. name of product to fetch

Create product

  POST /api/v1/addproduct

Update product by ID

  PUT /api/v1/products/${id}
Parameter Type Description
id string Required. ID of product to update

Delete product by ID

  DELETE /api/v1/products/${id}
Parameter Type Description
id string Required. ID of product to delete

CATEGORY

Get all categories

  GET /api/v1/categories

Get category by name

  GET /api/v1/category/${name}
Parameter Type Description
id string Required. name of category to fetch

Create category

  POST /api/v1/addcategory

Update category by ID

  PUT /api/v1/category/${id}
Parameter Type Description
id string Required. ID of category to update

Delete category by ID

  DELETE /api/v1/category/${id}
Parameter Type Description
id string Required. ID of category to delete

USERS

Get all users

  GET /api/v1/allusers

Get user by ID

  GET /api/v1/user/${id}
Parameter Type Description
id string Required. id of user to fetch

Sign-up user

  POST /api/v1/signup

Log-in user

  POST /api/v1/login

Update user by ID

  PUT /api/v1/user/${id}
Parameter Type Description
id string Required. ID of user to update

Delete user by ID

  DELETE /api/v1/user/${id}
Parameter Type Description
id string Required. ID of user to delete

CART

Get all cart items

  GET /api/v1/cart

Add to cart

  POST /api/v1/addtocart

Update cart item by ID

  PUT /api/v1/updatecart/{id}
Parameter Type Description
id string Required. ID of cart item to update

Delete cart item by ID

  DELETE /api/v1/deleteitem/${id}
Parameter Type Description
id string Required. ID of cart item to delete

Lessons Learned

  • CRUD cyle
  • MVC(S) Architectural design pattern
  • Data Transfer Objects and their uses
  • Database management (PostgreSQL)
  • Spring Security
  • JWT - JSON Web Tokens

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0