[ 
https://issues.apache.org/jira/browse/CAMEL-22348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhiying Yan updated CAMEL-22348:
--------------------------------
    Description: 
I tried a route with cxfrs component, and adding swagger ui by openApiFeature, 
but it showed nothing.

http://localhost:8080/services/api/hello/openapi.json can shows the api json.

For swagger UI, I have explicitly set the URL in SwaggerUiConfig, as 
http://localhost:8080/services/api/hello/api-docs?url=/services/api/hello/openapi.json
but this URL is not accessible at all. 
 !screenshot-1.png! 

but the following two links are available.
http://localhost:8080/services/api-docs?url=/services/openapi.json
http://localhost:8080/services/api-docs?url=/services/api/hello/openapi.json
This is my  [^demo.zip] , please help to check! 

  was:
I tried a route with cxfrs component, and adding swagger ui by openApiFeature, 
but it showed nothing.

http://localhost:8080/services/api/hello/openapi.json can shows the api json.
 !screenshot-2.png! 

For swagger UI, I have explicitly set the URL in SwaggerUiConfig, as 
http://localhost:8080/services/api/hello/api-docs?url=/services/api/hello/openapi.json
but this URL is not accessible at all. 
 !screenshot-1.png! 

but the following two links are available.
http://localhost:8080/services/api-docs?url=/services/openapi.json
http://localhost:8080/services/api-docs?url=/services/api/hello/openapi.json
This is my  [^demo.zip] , please help to check! 


> Camel cxfrs does not support explicit url in swaggerUiConfig
> ------------------------------------------------------------
>
>                 Key: CAMEL-22348
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22348
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxfrs
>    Affects Versions: 4.8.1
>            Reporter: Zhiying Yan
>            Priority: Minor
>         Attachments: demo.zip, screenshot-1.png, screenshot-2.png
>
>
> I tried a route with cxfrs component, and adding swagger ui by 
> openApiFeature, but it showed nothing.
> http://localhost:8080/services/api/hello/openapi.json can shows the api json.
> For swagger UI, I have explicitly set the URL in SwaggerUiConfig, as 
> http://localhost:8080/services/api/hello/api-docs?url=/services/api/hello/openapi.json
> but this URL is not accessible at all. 
>  !screenshot-1.png! 
> but the following two links are available.
> http://localhost:8080/services/api-docs?url=/services/openapi.json
> http://localhost:8080/services/api-docs?url=/services/api/hello/openapi.json
> This is my  [^demo.zip] , please help to check! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to