Spring Applications
Project: Catalog REST Service
The objective of this exercise is to implement a REST interface of the catalog service.
- Add the
spring-boot-starter-web
Maven dependency to the catalog project.
- Implement a REST controller
CatalogController
that supports the following REST requests
(details see API Documentation):
POST /books
− Add a book to the catalog
GET /books/{isbn}
− Find a book by its ISBN number
GET /books?keyword={keyword}
− Search for books by keyword
PUT /books/{isbn}
− Update a book
- Use the
server.port
application property to start the catalog microservice on port 8001.
- Test the controller using the Postman utility.