Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 1.9 KB

README.md

File metadata and controls

51 lines (25 loc) · 1.9 KB

A Restful CRUD API for book management using Spring Boot 2.x , Spring Data JPA,Hibernate,H2-database and Swagger documentation with containerization using Docker.

Steps for executing :

  1. Download the repository.

  2. Open the project in the IDE (Netbeans/Intellij Idea/Eclipse) and open the mvnw.cmd in terminal.Execute the below command to build the image.

mvnw.cmd spring-boot:build-image

  1. Execute the below command to run the container.

    docker run -p 8080:8080 bookservice:0.0.1-SNAPSHOT

  2. Run the below command to get the list of running containers.

docker ps

  1. Open the browser and navigate to below url to get the info about the available endpoints.

http://localhost:8080/swagger-ui/index.html

image

Supporting screenshorts of the working API:

  1. GET - http://localhost:8080/bookservice/books

image

  1. GET - http://localhost:8080/bookservice/books/{id}

image

  1. POST- http://localhost:8080/bookservice/books

image

image

  1. PUT - http://localhost:8080/bookservice/books/{id}

image

image

  1. DELETE - http://localhost:8080/bookservice/books/{id}

image