Skip to content

After migration from spring boot 3.3.4/springdoc 2.6.0 to spring boot 3.4.3/springdoc 2.8.5 the "try it out"button has disappeared #90

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

Closed
francoissey opened this issue Feb 27, 2025 · 2 comments

Comments

@francoissey
Copy link

I was running on spring boot 3.3.4/springdoc 2.6.0 and I could use the "try it out" button on my swagger page.
Yesterday I migrated to spring boot 3.4.3/springdoc 2.8.5 and since then I can not see the try it out button.

I read the doumentation I did try to use springdoc.swagger-ui.tryItOutEnabled=true but it did not help.

In my application properties I have

`
springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
springdoc.default-produces-media-type=application/json
springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"
springdoc.swagger-ui.path=/api/rest/v1/

`
I am using springdoc-openapi-starter-webmvc-ui and springdoc-openapi-starter-common

Dependency tree

`
+- org.springdoc:springdoc-openapi-starter-webmvc-ui:jar:2.8.5:compile
| +- org.springdoc:springdoc-openapi-starter-webmvc-api:jar:2.8.5:compile
| +- org.webjars:swagger-ui:jar:5.18.3:compile
| - org.webjars:webjars-locator-lite:jar:1.0.1:compile
| - org.jspecify:jspecify:jar:1.0.0:compile
+- org.springdoc:springdoc-openapi-starter-common:jar:2.8.5:compile
| +- org.springframework.boot:spring-boot-autoconfigure:jar:3.4.3:compile
| - io.swagger.core.v3:swagger-core-jakarta:jar:2.2.28:compile
| +- io.swagger.core.v3:swagger-annotations-jakarta:jar:2.2.28:compile
| +- io.swagger.core.v3:swagger-models-jakarta:jar:2.2.28:compile
| - com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.18.2:compile

`

How can I get my "try it out" button back?

@francoissey
Copy link
Author

spring boot 3.4.3/springdoc 2.6.0 ==> I can see the button
spring boot 3.4.3/springdoc 2.7.0 ==> the buton is not displayed

@francoissey francoissey changed the title After migration from spring boot 3.3.4/springdoc 2.6.0 to spring boot 3.4.3/springdoc 2.8.5 the "try it out"button has dissapered After migration from spring boot 3.3.4/springdoc 2.6.0 to spring boot 3.4.3/springdoc 2.8.5 the "try it out"button has disappeared Feb 27, 2025
@francoissey
Copy link
Author

francoissey commented Feb 27, 2025

The property must be without double quotes i.e.:
springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace

springdoc.swagger-ui.tryItOutEnabled works the other way around
if springdoc.swagger-ui.tryItOutEnabled=false (default) then 'try it out' is enabled
if springdoc.swagger-ui.tryItOutEnabled=true then 'try it out' is disabled

Could you please make an addendum to the documentation?

@bnasslahsen bnasslahsen transferred this issue from springdoc/springdoc-openapi Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant