Spring Applications
Project: Customer REST Service
The objective of this exercise is to implement a REST interface of the customer service.
- Add the
spring-boot-starter-web
Maven dependency to the customer project.
- 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
- Use the
server.port
application property to start the order microservice on port 8002.
- Test the controller using the Postman utility.