<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Map the Endpoint in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295151#M67962</link>
    <description>&lt;P&gt;@Richard Hall​&amp;nbsp;thank you for the response. yes I am talking about query parameter. but now where can I specify query parameter for  swagger? in my CREST2 in &lt;B&gt;Relative path&lt;/B&gt; I am already using &lt;B&gt;simple("${header.CamelHttpPath}" + context.relativePath&lt;/B&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 11:12:05 GMT</pubDate>
    <dc:creator>user19</dc:creator>
    <dc:date>2022-04-05T11:12:05Z</dc:date>
    <item>
      <title>How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295142#M67953</link>
      <description>&lt;P&gt;I am trying to create a Rest route in Talen ESB open studio. I have an endpoint which has multiple methods inside.I access my API from Metadata. how can I reroute each endpoint according to its method. lets say endpoint is &lt;A href="http://Example/api/version/Method/operation" target="_blank"&gt;http://Example/api/version/Method/operation&lt;/A&gt;. it has four methods Rawdata, balancing, customdata and final data. all these methods has multiple operations. &lt;A href="http://Example/api/version/Rawdata/getRawdata" target="_blank"&gt;http://Example/api/version/Rawdata/getRawdata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://Example/api/version/Rawdata/getdatafromfields" target="_blank"&gt;http://Example/api/version/Rawdata/getdatafromfields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://Example/api/version/balancing/getfiltereddata" target="_blank"&gt;http://Example/api/version/balancing/getfiltereddata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How can I tell talend that when I call Rawdata in Soapui send this endpoint. which components i can use or can Java code can do it? Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PNHk2AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154422i0F8F586105AA716C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PNHk2AAH.png" alt="0695b00000PNHk2AAH.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PNHk7AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157509i248F4924AC5508CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PNHk7AAH.png" alt="0695b00000PNHk7AAH.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295142#M67953</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2024-11-15T23:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295143#M67954</link>
      <description>&lt;P&gt;Sorry about the delay in getting back to you here. I had to play around to figure this out. You may need to calculate your endpoint (in vs out) using some code in the cProcessor, but this is how you can switch them in the cREST_2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the Relative Path to set the endpoint using a header. The way I tested this was as follows...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;My cREST_1 has 2 methods. They are "/employees" and "/employee/{number}". These methods are included in the "CamelHttpPath" header of the Exchange. When the "/employees" method is called, that is set to the header, when the "/employee/{number}" is called, that is set to the header. This is where you may need to manipulate yours if your input methods are not the same as the methods you are wanting to call. &lt;/LI&gt;&lt;LI&gt;Then in my cREST_2 component, I simply set the Relative Path value to be simple("${header.CamelHttpPath}")&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give that a go and see what you think. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295143#M67954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-01T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295144#M67955</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp; how you added these methods in "CamelHttpPath"?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 07:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295144#M67955</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-04T07:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295145#M67956</link>
      <description>&lt;P&gt;I was trying to get the query  parameter from the header.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QC3QFAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136400i261E32FFD79CC27B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QC3QFAA1.png" alt="0695b00000QC3QFAA1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 08:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295145#M67956</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-04T08:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295146#M67957</link>
      <description>&lt;P&gt;The CamelHttpPath header is automatically set with the path you are calling which you've specified for the method. In the code above you appear to be looking for the CamelHttpQuery header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 09:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295146#M67957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-04T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295147#M67958</link>
      <description>&lt;P&gt;@rhall it is throwing HTTP/1.1404 Not found &lt;/P&gt;&lt;P&gt;Probably it can't identify the method. can you please guide me how can &amp;nbsp;to calculate  endpoint (in vs out) using some code in the cProcessor. I mean any example?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 11:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295147#M67958</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-04T11:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295148#M67959</link>
      <description>&lt;P&gt;I made sure that my methods were structured in exactly the same way as the methods of the API I am calling (just to keep it simple). So my methods look like this in my config......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QC4QuAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134627iFFE462622E438400/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QC4QuAAL.png" alt="0695b00000QC4QuAAL.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in my cProcessor is just this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println(exchange.getIn().getHeader("CamelHttpPath"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just using it to check the value of the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It produces the following. See that they match the methods I set up (apart from there being an actual number instead of the "{number}"....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/employees&lt;/P&gt;&lt;P&gt;/employee/1&lt;/P&gt;&lt;P&gt;/employee/2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your cProcessor, you will need to get this value, compute the String you need for the API you care calling and set it to a new header value. Then use that header in the Relative Path of the cREST_2, as I showed the post above.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 12:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295148#M67959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-04T12:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295149#M67960</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp; I am able to deploy the route and call the methods. I have swagger specification in this route. I can  see list of operations in  my http://localhost:9001/services/api/swagger.json if I try to get some data then I get response code 404 no content. Since I used simple("${header.CamelHttpPath}") for my route and now swagger  is not getting any parameters.  Is there any way to  pass the parameters to swagger?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295149#M67960</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-05T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295150#M67961</link>
      <description>&lt;P&gt;If you're talking about query parameters (parameters provided in the URL with ? and &amp;amp;, etc), you can see these in the CamelHttpQuery header. If you need to use these, I suspect that there will be some String manipulation required.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 10:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295150#M67961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-05T10:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295151#M67962</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;thank you for the response. yes I am talking about query parameter. but now where can I specify query parameter for  swagger? in my CREST2 in &lt;B&gt;Relative path&lt;/B&gt; I am already using &lt;B&gt;simple("${header.CamelHttpPath}" + context.relativePath&lt;/B&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 11:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295151#M67962</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-05T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295152#M67963</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp; or if I uncheck the box&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QCFsQAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142748iCBB222DAF6C64508/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QCFsQAAX.png" alt="0695b00000QCFsQAAX.png" /&gt;&lt;/span&gt;still there is swagger in services list&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QCFt4AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152276iC661DC59A16B84EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QCFt4AAH.png" alt="0695b00000QCFt4AAH.png" /&gt;&lt;/span&gt;how can disable it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 11:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295152#M67963</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-05T11:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295153#M67964</link>
      <description>&lt;P&gt;I'm afraid you are not giving enough information. Why would you want to disable exposing the Swagger specification? It won't change how the API is called. In order to know how to call your API, we would need to know the specification of your API. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 13:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295153#M67964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-05T13:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295154#M67965</link>
      <description>&lt;P&gt;I can call the API using the route but I can't call the API using swagger exposed by talend, so I think it's better to Remove Swagger because API will work fine, but even I can't remove it after unchecking the box.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 06:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295154#M67965</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-06T06:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295155#M67966</link>
      <description>&lt;P&gt;If that is not working, you will need to raise a Support case.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295155#M67966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-06T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295156#M67967</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp; I want to make the Resource case insensitive. by using  simple("${header.CamelHttpPath}") it iscase sensitive. s I tried &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String Path = (String)exchange.getIn().getHeader("HTTP_PATH");&lt;/P&gt;&lt;P&gt;String LCPath = Path.toLowerCase();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String apiParams&amp;nbsp;= (String)exchange.getIn().getHeader("QUERY_STRING");&lt;/P&gt;&lt;P&gt;String&amp;nbsp;LCapiParams = apiParams.toLowerCase();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.relativePath = LCPath.concat(LCapiParams);&lt;/P&gt;&lt;P&gt;but it is returning null.&lt;/P&gt;&lt;P&gt;I also tried StringHandling.DOWNCASE(("${header.CamelHttpPath}" )+ context.RelativePath) but nothing works.&lt;/P&gt;&lt;P&gt;Do you have any dea how can we convert it into lowercase so it canbe case Insensitive?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295156#M67967</guid>
      <dc:creator>user19</dc:creator>
      <dc:date>2022-04-13T12:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Map the Endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295157#M67968</link>
      <description>&lt;P&gt;You need to find out precisely where the null is coming from. Between each line of code add a System.out.println() to show the value that has been set. This should give you some clues as to where the issue is. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, where is context.relativePath being used? Context variables in Routes behave different to how they behave in Jobs. Once an endpoint has been initialised, you cannot dynamically change configurations. So this could be a cause of this.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 14:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Map-the-Endpoint/m-p/2295157#M67968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-13T14:38:37Z</dc:date>
    </item>
  </channel>
</rss>

