Skip to content

vijayyadav06/book-inventory-boot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book inventory Spring boot app

Spring Boot based implementation of a minimalist book inventory app to represent a possible module architecture. This app offers basic CRUD functionality and some search functionality for handling books via book title and author. The book entities are persisted in an underlying SQL database (in memory) for the sake of simplicity. On the creation of a new Book it is registered via an imaginary 3rd party "register book" endpoint returning with an isbn number.

Book Inventory app architecture

The book inventory app relies on my Rest Devtools library released now in Sonatype repo / Maven Central .

See more details: Blog post

Create a book

POST http://localhost:8080/api/books payload: { "author":"Tamas Lang","title":"Spring app architecture","isbn":null } response: 201 Created with header: Location : http://localhost:8080/api/books/isbn1001

Get a book by id (isbn)

GET http://localhost:8080/api/books/isbn1001 response: { "author":"Tamas Lang","title":"Spring app architecture","isbn":null }

Get all books

GET http://localhost:8080/api/books response: [{ "author":"William Shakespeare","title":"Hamlet","isbn":null }, { "author":"Paolo Giordani","title":"La solitudine dei numeri primi","isbn":null }]

Update a book

PUT http://localhost:8080/api/books/isbn1001 payload: { "author":"Tamas Lang","title":"Spring app architecture","isbn":"isbn1001" } response: 200 OK

Get by author

GET http://localhost:8080/api/books?author=William response: [{ "author":"William Shakespeare","title":"Hamlet","isbn":null }]

Get by title

GET http://localhost:8080/api/books?title=Hamlet response: 200 OK [{ "author":"William Shakespeare","title":"Hamlet","isbn":null }]

Delete

DELETE http://localhost:8080/api/books/isbn1001 response: 200 OK

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 89.1%
  • Gherkin 10.9%