Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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