-
-
Notifications
You must be signed in to change notification settings - Fork 529
Add support for addPathPrefix with Webflux swagger-ui #1050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This seems to be a dupblicate of #1034. |
I've tested v1.5.3 now, but I got the same error as #1047.
As you say, the problem itself seems to be a duplicate of #1037, so I close this. |
This seems a different problem, as you are setting the path prefix using |
The support is now added. |
I've tested with the latest of 1.5.5-SNAPSHOT, and it works. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the Feature


When we use WebFluxConfigurer to set base-path, it's unable to access
http://server:port/context-path/swagger-ui.html
.We can access to
http://server:port/context-path/v3/api-doc
though.WebfluxConfigurer
In this case,
context-path
should be replaced with/api/v1
, so we should see swagger-ui athttp://server:port/api/v1/swagger-ui.html
.It seems like that context-path is not loaded when generating the url of springdoc-config, because we can access to

http://server:port/api/v1/v3/api-docs/swagger-config
.To Reproduce
Steps to reproduce the behavior:
What version of spring-boot you are using?
Running with Spring Boot v2.4.0, Spring v5.3.1
What modules and versions of springdoc-openapi are you using?
Using springdoc-openapi-webflux-ui v1.5.2 with springdoc-openapi-kotlin v.1.5.2
Provide with a sample code (HelloController) or Test that reproduces the problem
I put a sample code to set context-path by WebFluxConfigurer above. so please refer that.
Expected behavior
We should be able to access swagger-ui.html
The text was updated successfully, but these errors were encountered: