- First create database and then restore it with file "/src/main/resources/sql/dump-demo_db".
Go in project's root directory and run these commands.
./gradlew clean./gradlew bootRun-
GET /api/auth/signupcreate user{ "username": "username here", "email": "email here", "password": "password here"} -
POST /api/auth/signinLogin with user credentials{ "username": "username here", "password": "password here"} -
GET /api/auth/users/{userId}/storesList of all stores for the user -
GET /api/auth/stores/{storeId}/inventoryList out all the books in inventory inside the store -
DELETE /api/auth/books/{bookId}Remove from the inventory. -
POST /api/auth/booksAdd 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" }
Go to this link https://www.getpostman.com/collections/5c69c584b05a90c13845 and import json from this link to postman.
