In this demo, I am going to show you, step-to-step, how to use Fuse Online’s API Client Connector to interface to an external API and how to create a simple API in front of it to prevent leak of implementation details as well as making it easier for the user as only relevant info is required for input and returned.
The external API that we are calling is the Red Hat Decision Manager REST API for DMN (Decision Model and Notation). A simple DMN decision is created to validate first name, last name and ABN (Australian Business Number). Please note that what the business rules do here is not important as the objective is to show you how you can interface from Fuse Online to an external API.
I am going to configure Fuse Online’s API Client Connector to define an API, create a connection based on that API to access Decision Manager’s REST API and use Fuse Online’s API Provider to implement an API to put in front of the external API to simplify the input and output parameters such that no irrelevant info is returned to the caller of the API.
Input Parameter Transformation:
Output Parameter Transformation:
Everything in this demo is running on Red Hat Openshift.
Red Hat Decision Manager: https://www.redhat.com/en/technologies/jboss-middleware/decision-manager
Thank you for watching.