Spring Web Services

Exercise: Order REST Interface

Implement a REST interface of the order service that enables the following requests:

POST /orders − Place an order
GET /orders/{id} − Find an order by its identifier
GET /orders?customerId={id}&year={year} − Search for orders by customer and year
PATCH /orders/{id} − Cancel an order

API Documentation