In order to complete this exercise, add an API Gateway for all our microservices. The following steps are required to achieve this task:
- Create new property files per service and check in to Git repositories.
- Change application.properties to bootstrap.properties and add the required configurations.
- Add @EnableZuulProxy in the application.
- @EnableDiscoveryClient in all applications.
- Optionally, change the default generated package names and the filenames.
In the end, we will have the following API Gateway projects:
- chapter7.fares-apigateway
- chapter7.search-apigateway
- chapter7.checkin-apigateway
- chapter7.book-apigateway