Skip to content

Backend for book store project using spring boot, spring security, jwt authentication, role based authorization

Notifications You must be signed in to change notification settings

avi465/book-store-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Environment Variables

To run this project, you will need to add the following environment variables to your run configuration

DB_URL

example:

DB_URL=jdbc:postgresql://localhost:5432/book_store_dev_db

DB_USERNAME

example:

DB_USERNAME=postgres

DB_PASSWORD

example:

DB_PASSWORD=your_database_password

API Reference

Note: Add bearer token for authorized request

[1] - Authorization Admin

[2] - Authorization User

ADMIN

  POST /api/admin/register
  POST /api/admin/login

USER

  POST /api/user/register
  POST /api/user/login
  PUT /api/user/{id} [2]

PRODUCT

  POST /api/products [1]
  PUT /api/products/{id} [1]
  DELETE /api/products/{id} [1]
  GET /api/products [1][2]
  GET /api/products/{id} [1][2]

CART

  POST /api/cart [2]
  PUT /api/cart/{itemId} [2]
  DELETE /api/cart/{itemId} [2]
  GET /api/cart [2]

FEEDBACK

  POST /api/feedbacks/submit [2]
  GET /api/feedbacks/{productId} [2]

ORDER

  POST /api/orders [2]
  GET /api/orders [1]
  GET /api/orders/history [2]

WISHLIST

  POST /api/wishlist [2]
  DELETE /api/wishlist/{itemId} [2]
  GET /api/wishlist [2]

About

Backend for book store project using spring boot, spring security, jwt authentication, role based authorization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages