Provided Backend Microservices
Last updated
Last updated
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:
customer-service
product-service
Service URLs:
Customer Service (Customer API)
http://localhost:9091
--
Product Service (Products API)
http://localhost:9092
https://localhost:8444
The customer service provides a Swagger UI documentation for all provided APIs at .
You find the corresponding requests in the provided Postman collection (see directory _/setup/postman) as well.
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
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
The product service provides a Swagger UI documentation for all provided APIs at .
For more information on running spring boot applications please check the .
Just look into the on how to set the active profile.