Skip to content

anshjamwal15/book-managment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book-Managment

Add database to your localhost

  • First create database and then restore it with file "/src/main/resources/sql/dump-demo_db".

To Start Server

Go in project's root directory and run these commands.

./gradlew clean
./gradlew bootRun

REST API

  • GET /api/auth/signup create user

     { "username": "username here", "email": "email here", "password": "password here"}
    
  • POST /api/auth/signin Login with user credentials

     { "username": "username here", "password": "password here"}
    
  • GET /api/auth/users/{userId}/stores List of all stores for the user

  • GET /api/auth/stores/{storeId}/inventory List out all the books in inventory inside the store

  • DELETE /api/auth/books/{bookId} Remove from the inventory.

  • POST /api/auth/books Add a new book.

    { "name" : "book name", "noOfPages": "number of pages here" }
    
  • POST /api/auth/inventory/{bookId}/{storeId} Update inventory for an existing book.

    { "bookCount" : "book count here in numerals" }
    

For API Testing

Go to this link https://www.getpostman.com/collections/5c69c584b05a90c13845 and import json from this link to postman.

About

Book-management System for libraries and book store.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages