<?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 cREST component and Swagger with context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cREST-component-and-Swagger-with-context-variable/m-p/2236002#M24848</link>
    <description>&lt;P&gt;we are using Talend ESB version 7.0.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when using a context variable for the endpoint of a cREST component (as server) we cannot use the expose Swagger functionality. The code won't compile.&lt;/P&gt;
&lt;P&gt;it throws the error "The method setBasePath(String) in the type AbstractSwaggerFeature is not applicable for the arguments ()"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it seems the code that would work is commented in the generated code:&lt;/P&gt;
&lt;PRE&gt;// swagger2Feature_cREST_1.setBasePath(getCXFRSEndpointAddress(context.myEndpoint));
		swagger2Feature_cREST_1.setBasePath();&lt;/PRE&gt;
&lt;P&gt;Is there any ways around this short of not using context variables here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Florent&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:42:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:42:02Z</dc:date>
    <item>
      <title>cREST component and Swagger with context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cREST-component-and-Swagger-with-context-variable/m-p/2236002#M24848</link>
      <description>&lt;P&gt;we are using Talend ESB version 7.0.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when using a context variable for the endpoint of a cREST component (as server) we cannot use the expose Swagger functionality. The code won't compile.&lt;/P&gt;
&lt;P&gt;it throws the error "The method setBasePath(String) in the type AbstractSwaggerFeature is not applicable for the arguments ()"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it seems the code that would work is commented in the generated code:&lt;/P&gt;
&lt;PRE&gt;// swagger2Feature_cREST_1.setBasePath(getCXFRSEndpointAddress(context.myEndpoint));
		swagger2Feature_cREST_1.setBasePath();&lt;/PRE&gt;
&lt;P&gt;Is there any ways around this short of not using context variables here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Florent&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cREST-component-and-Swagger-with-context-variable/m-p/2236002#M24848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: cREST component and Swagger with context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cREST-component-and-Swagger-with-context-variable/m-p/2236003#M24849</link>
      <description>&lt;P align="left" style="margin: 0px; text-align: left; line-height: 20.55pt;"&gt;&lt;SPAN style="margin: 0px; color: #3e3e3e; font-family: '&amp;amp;quot',serif; font-size: 12pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P align="left" style="margin: 0px; text-align: left; line-height: 20.55pt;"&gt;&lt;SPAN style="margin: 0px; color: #3e3e3e; font-family: '&amp;amp;quot',serif; font-size: 12pt;"&gt;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; &amp;amp;amp;quot&amp;amp;quot;,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;Would you mind posting your route setting screenshots on forum?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P align="left" style="margin: 0px; text-align: left; line-height: 20.55pt;"&gt;&lt;SPAN style="margin: 0px; color: #3e3e3e; font-family: '&amp;amp;quot',serif; font-size: 12pt;"&gt;We have a similar jira issue about "Default endpoint URI not added to context variable endpoint in cRest".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P align="left" style="margin: 0px; text-align: left; line-height: 20.55pt;"&gt;&lt;SPAN style="margin: 0px; color: #3e3e3e; font-family: '&amp;amp;quot',serif; font-size: 12pt;"&gt;Here is the related jira link:&lt;A title="https://jira.talendforge.org/browse/TESB-17083" href="https://jira.talendforge.org/browse/TESB-17083" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-17083&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P align="left" style="margin: 0px; text-align: left; line-height: 20.55pt;"&gt;&lt;SPAN style="margin: 0px; color: #3e3e3e; font-family: '&amp;amp;quot',serif; font-size: 12pt;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P align="left" style="margin: 0px; text-align: left; line-height: 20.55pt;"&gt;&lt;SPAN style="margin: 0px; color: #3e3e3e; font-family: '&amp;amp;quot',serif; font-size: 12pt;"&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 03:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cREST-component-and-Swagger-with-context-variable/m-p/2236003#M24849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T03:52:20Z</dc:date>
    </item>
  </channel>
</rss>

