Spring-Boot-Framework / catalog-service

Provides functionality for managing the books in the catalog.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catalog Service

REST API

Endpoint Method Req. body Status Resp. body Description
/books GET 200 Book[] Get all the books in the catalog.
/books POST Book 201 Book Add a new book to the catalog.
422 A book with the same ISBN already exists.
/books/{isbn} GET 200 Book Get the book with the given ISBN.
404 No book with the given ISBN exists.
/books/{isbn} PUT Book 200 Book Update the book with the given ISBN.
201 Book Create a book with the given ISBN.
/books/{isbn} DELETE 204 Delete the book with the given ISBN.

Useful Commands

Gradle Command Description
./gradlew bootRun Run the application.
./gradlew build Build the application.
./gradlew test Run tests.
./gradlew bootJar Package the application as a JAR.
./gradlew bootBuildImage Package the application as a container image.

After building the application, you can also run it from the Java CLI:

java -jar build/libs/catalog-service-0.0.1-SNAPSHOT.jar

About

Provides functionality for managing the books in the catalog.

License:Apache License 2.0


Languages

Language:Java 100.0%