Typically, the third-party application will send a payload to the Etlworks Integrator, which will trigger an event-driven Flow.
Read about user-defined APIs.
To test a Flow without leaving the Etlworks Integrator, you will need to create another Flow as a sender.
Let's assume that you have an example payload somewhere in a file-based or cloud storage. Let's also assume that you have already created and scheduled an event-driven Flow and created an API user.
Step 1. Create a source Connection and a Format for the payload.
Step 2. Create a destination Connection that sends a payload to the Listener you previously created for the event-driven Flow.
For example, let's assume that:
- You are running the Etlworks Integrator on
https://app.etlworks.com
. - HTTP Listener is used in the event-driven Flow.
- The URL Pattern for the Listener is configured as
/hl7/patient
.
If all of the above is true, create a destination HTTP Connection for the sender Flow with the following parameters:
URL
:https://app.etlworks.com/plugins/schedules/rest/v1/http /hl7/patient
Authentication
:token
Authentication URL
:https://app.etlworks.com/rest/v1/token-auth/issue
HTTP Method for token Authentication
:POST
Access token attribute
:token
Access token prefix
:Bearer
Authentication Request Payload
:{"login":"{user}","password":"{password}"}
Authentication Request Content Type
:application/json
User
: user id for the API userPassword
: password for the API userMethod
:POST
Step 3. Create a transformation where the source (FROM
) is the source Connection and Format you previously created in step 1, the destination Connection is the Connection you previously created in step 2, and the destination Format is the previous source Format.
Comments
0 comments
Please sign in to leave a comment.