Book store implemented with SpringBoot
All Required Reference data will be created by application at startup, Application is utilizing H2 DB
Java 8
Maven 3.6+
Docker (if you intend to deploy in containerized environment)
Option 1: Command Line
mvn clean install -DskipTests
java -jar librarymgmt-0.0.1-SNAPSHOT.jar
Option 2: Docker Container
docker build .
BTOO1 - Fiction BT002 - Comic
PRAug2022
http://localhost:8085/library/swagger-ui.html#/
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