Spring Applications

Project: Catalog REST Service

The objective of this exercise is to implement a REST interface of the catalog service.
  1. Add the spring-boot-starter-web Maven dependency to the catalog project.
  2. 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
  3. Use the server.port application property to start the catalog microservice on port 8001.
  4. Test the controller using the Postman utility.