#Welcome to Online Book Shop #For running the application you need to run the OnlineBookShopApplication main method
#For aading a book in online shop :
Curl Request :
curl --location --request POST 'http://localhost:8080/bookShop/post'
--header 'Content-Type: application/json'
--header 'Content-Type: text/plain'
--data-raw '{
"title":"end",
"author":"test",
"isbn":"jhsdh",
"price":200
}'
#For getting the book based on title : http://localhost:8080/bookShop/getBooks/title/{title} --- like search supported
#For getting the book based on author :http://localhost:8080/bookShop/getBooks/author/{author} -- like search supported
#For getting the book based on isbn : http://localhost:8080/bookShop/getBooks/isbn/{isbn}
#For getting the title based on the isbn using serach media provided : http://localhost:8080/bookShop/getBooks/searchMedia/jhsdh
#if you want to buy a book :
Curl Request:
curl --location --request DELETE 'http://localhost:8080/bookShop/buyBook/1'
--header 'Content-Type: application/json'
To run the Application: Steps
-
mvn clean install
-
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 demo-0.0.1-SNAPSHOT.jar
-
docker build -t onlinebookshop .
-
docker run -p 8080:8080 -t onlinebookshop