Skip to content

asifashraf80/bookstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bookstore

Book store implemented with SpringBoot

Note

All Required Reference data will be created by application at startup, Application is utilizing H2 DB

Prerequsite

Java 8
Maven 3.6+
Docker (if you intend to deploy in containerized environment)

How to Run

Option 1: Command Line
mvn clean install -DskipTests
java -jar librarymgmt-0.0.1-SNAPSHOT.jar
Option 2: Docker Container
docker build .

Valid Book Types

BTOO1 - Fiction BT002 - Comic

Valid Promotion Code

PRAug2022

Swagger UI endpoint

http://localhost:8085/library/swagger-ui.html#/

Sample Payloads

New Book { "author": "Sajid Khan", "bookTypeCode": "BT001", "description": "First Book Ever", "isbn": "ISBN1", "name": "First Book", "price": 1000 }

Update Book { "id":1 "author": "Sajid Khan", "bookTypeCode": "BT001", "description": "First Book Ever", "isbn": "ISBN1", "name": "First Book", "price": 1000 }

Search Book { "pageNo": 0, "pageSize": 20, "filters": [ { "id":"name", "value":"Book" } ] }
Allowed filter ids are name,description,author,isbn

Checkout Books { "bookIds": [ 5, 4 ], "promocode":"PRAug2022" }
Promo Code is optional

About

Book store Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published