URL pattern
In Integrator, you define an endpoint by specifying the URL Pattern parameter when creating an HTTP listener.
Only one HTTP listener with that particular URL Pattern can exist at the same time. For example, you cannot create multiple HTTP listeners with the URL Pattern /patients
. You can, however, create a listener with the URL Pattern /patients
and another listener with the URL Pattern /patient
.
User-defined API endpoint URL
The endpoint URL is defined as https://etlworks_base_url/rest/v1/httplistener/url_pattren.
Example: https://app.etlworks.com/rest/v1/httplistener/patients
URL parameters
Within the URL Pattern, you can specify path parameters: /patients/{patientid}
. They will be automatically converted to flow variables, which can then be referenced from the source SQL, FROM and TO fields or accessed programmatically.
An example of an endpoint with path parameters
URL Pattern: /patients/{patientid}
Actual URL: https://app.etlworks.com/rest/v1/httplistener/hl7/patients/123
An example of source SQL with parameters
select * from patient where patientid = {patientid}
Comments
0 comments
Please sign in to leave a comment.