Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

cREST component and Swagger with context variable

we are using Talend ESB version 7.0.1

 

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.

it throws the error "The method setBasePath(String) in the type AbstractSwaggerFeature is not applicable for the arguments ()"

 

it seems the code that would work is commented in the generated code:

// swagger2Feature_cREST_1.setBasePath(getCXFRSEndpointAddress(context.myEndpoint));
		swagger2Feature_cREST_1.setBasePath();

Is there any ways around this short of not using context variables here?

 

Thanks,

Florent

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello,

Would you mind posting your route setting screenshots on forum?

We have a similar jira issue about "Default endpoint URI not added to context variable endpoint in cRest". 

Here is the related jira link:https://jira.talendforge.org/browse/TESB-17083

Best regards

Sabrina