We need some proxied backend services to play around with the Spring Cloud Gateway.
That is why the following spring boot API services are provided as part of the workshop in the /microservices directory:
Service URLs:
Service
URL
Secure URL (TLS Lab)
Customer Service (Customer API)
Product Service (Products API)
Customer Service
The customer service provides a Swagger UI documentation for all provided APIs at http://localhost:9091/swagger-ui.htmlarrow-up-right .
Product Service
The product service provides a Swagger UI documentation for all provided APIs at http://localhost:9092/swagger-ui.htmlarrow-up-right .
You find the corresponding requests in the provided Postman collection (see directory _/setup/postman) as well.
Running these Services
To run spring boot services you can use the provided starting capabilities of your Java IDE or use the spring boot maven plugin:
mvn spring-boot:run
For more information on running spring boot applications please check the Spring Boot reference docs sectionarrow-up-right .
Both applications support an insecure (unauthenticated) or secure (authentication using JWTs) mode. By default, the insecure mode is used.
To activate the secure mode please start the corresponding application with the secure profile. Either specify the profile in your IDE or use the spring boot maven plugin for this.
mvn spring-boot:run -Dspring-boot.run.profiles=secure
Just look into the Spring Boot reference section arrow-up-right on how to set the active profile.