Spring Project
Project: Order REST Service
-
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
-
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.
-
Test the controller using the Postman utility.
API Documentation