-
-
Notifications
You must be signed in to change notification settings - Fork 553
Description
Describe the bug
When I have a custom path /documentation/swagger-ui.html set for the webflux-ui version, this redirects to /documentation/webjars/swagger-ui/index.html?configUrl=/documentation/v3/api-docs/swagger-config
However, the webjars are not available on this url, leading to a 404 response.
The webjars are available on the alternative path /webjars/swagger-ui/index.html?configUrl=/documentation/v3/api-docs/swagger-config, ie without the /documentation prefix. That however foils my plan to have everything under the /documentation prefix for easier management of access permissions.
I tried also setting springdoc.webjars.prefix: /documentation/webjars, but that just compounded the issue by redirecting to /documentation/documentation/webjars/swagger-ui/index.html without changing the actual location the webjars were served from.
To Reproduce
Steps to reproduce the behavior:
- What version of spring-boot you are using? v2.2.4
- What modules and versions of springdoc-openapi are you using? springdoc-openapi-webflux-ui v1.2.32
springdoc.api-docs.path: /documentation/v3/api-docs
springdoc.swagger-ui.path: /documentation/swagger-ui.html- Access the path
/documentation/swagger-ui.htmlfrom a web browser. - Observe 404 error
Expected behavior
The swagger ui is shown when accessing /documentation/swagger-ui.html