Spring Project

Project: Order REST Service

  1. Implement a REST controller OrderController that supports the following REST requests:
    • POST /orders − Place an order
    • GET /orders/{id} − Find an order by its identifier/li>
    • GET /orders?customerId={id}&year={year} − Search for orders by customer and year
    • PATCH /orders/{id} − Cancel an order
  2. Implement a REST client component CatalogClient and use it in the controller to look up the books of a purchase order in the catalog microservice.
  3. Test the controller using the Postman utility.

API Documentation