This demo shows how to create a custo policy in Red Hat 3Scale using Camel-K.
Basically we have one microservices that shows data of a person and the second one shows data of a bank account. Those are independent microservices and the policy do the composition between those microservices and return the data from a person with their respective bank accounts.
Also it tooks a copy of that message and send to the topic auditoria
in Kafka.
Access the swagger-ui, make sure to correct replace for the route address.
http://person-demo.apps.cluster-5f88.5f88.sandbox1482.opentlc.com/swagger-ui/
Download and install the camel-k binary https://camel.apache.org/download/#camel-k
Install the Camel-k Operator in the demo project
Deploy the route
kamel run camel-k/Composition.java