Skip to content

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.

Notifications You must be signed in to change notification settings

NIVEDITHA54/BookService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published