Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
In the current scenario, I have created a Talend pipeline that is identical for all 50 countries, with the only difference being the context.country_name. I have published this Talend job in the Talend Administration Center and can generate a metaservlet API by encoding the below JSON string. This allows me to trigger the Talend job through an external API by passing the encoded string in the JSON body.
However, the issue is that for each of the 50 countries, I am generating 50 different metaservlet APIs. Is there a way to generate a single static API, where the context.country_name is passed dynamically as a parameter or header in the API body (or similar method), to avoid generating 50 separate APIs?
JSON Body for reference:
{
"actionName": "runTask",
"authPass": "talendsupport",
"authUser": "talendsupport@company.com",
"jvmParams": [
"-Xmx1024m",
"-Xms64m"
],
"mode": "synchronous",
"taskId": 1,
"context": {
"country_name": "India"
}
}
Thanks,
Dinesh
Hi Team,
Could someone please assist me in implementing the solution for the scenario mentioned above? This will help us minimize repetition and streamline the process.
Thanks