Spring Applications

Project: Customer REST Service

The objective of this exercise is to implement a REST interface of the customer service.
  1. Add the spring-boot-starter-web Maven dependency to the customer project.
  2. Implement a REST controller CustomerController that supports the following REST requests (details see API Documentation):
    • POST /customers − Register a customer
    • GET /customers/{id} − Find a customer by his identifier
    • GET /customers?name={name} − Search for customers by name
    • PUT /customers/{id} − Update a customer
  3. Use the server.port application property to start the order microservice on port 8002.
  4. Test the controller using the Postman utility.