/microservices-istio

Example for a provider / consumer of a REST Service including a published Client and DTO's

Primary LanguageJava

microservices-istio

Use case for a MircoService REST API with a client that can be consumed by a consumer application. Have a look at the deployment configuration for the environments and different services.

Modules

Pizza-Order

The "WebAppliation" that provides a Frontend and a Backend for the Frontend with a REST API.

The REST-API Client) gets its data from a microservice called pizza-inventory.

Pizza-Inventory

The MicroService provides a simple REST-API.

Besides the API, a Client Stub and a DTO is provided as jar File that can be used by consumers.

The service environment is derived from the current env of the consumer, but can be overriden by setting a property.

You can access the Service "UI" with a link to the OpenApi Spec here.

Run locally

Run mvn clean install

Then run both, the pizza-inventory-impl and the pizza-order with the active profile dev. Open http://localhost:8080/ and http://localhost:8081/ in your webbrowser.