Hi

On 31/08/16 20:46, cacert wrote:
Hi Sergey,

After setting this property I can see swagger.json is generated but still
can not see swagger ui when I follow the link.

when I list my restfull services it prints:
Endpoint address: http://localhost:8080/api/rest
Swagger : http://localhost:8080/api/rest/api-docs?url=/api/rest/swagger.json

when i follow the link
"http://localhost:8080/api/rest/api-docs?url=/api/rest/swagger.json"; again
this request comes to the route which is not I was expecting.

Are you referring to Swagger UI auto-linking in CXF 3.1.7 ? If yes then in CXF 3.1.7 it works by allocating another JAX-RS root resource to the current endpoint - which unfortunately does not work for a Camel route.

Swagger.json generation is also supported by default by an extra JAX-RS root resource which is also not good for Camel route - this is why Swagger2Feature.runAsFilter=true helps but as I noted above SwaggerUI resource can not be available as a filter in CXF 3.1.7.

I've just fixed it for CXF 3.1.8-SNAPSHOT

Sergey




--
View this message in context: 
http://camel.465427.n5.nabble.com/CXFRS-swagger-integration-tp5787041p5787072.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Reply via email to