27 questions
0 votes
0 answers
64 views
Issues with polymorphis in Swagger (springdoc) in Spring Boot after upgrading to 3.5
I have created a very simple demo project with one controller endpoint: Spring Boot 3.5.6 Springdoc 2.8.13 This was working much better in Spring Boot 2.7.x Full project here: https://github.com/...
0 votes
0 answers
12 views
Springdoc Mobile Compatibility
I have started using springdoc in java. Everything works as expected but if i load the the webpage on mobile it is not compatible. The proportions do not look correct. I have investigated the ...
0 votes
1 answer
485 views
Springdoc apidocs display yaml by default instead of json
I have a Spring Boot 3.x application using Springdoc to generate Swagger and OpenAPI documentation. When I access /api-docs, it returns the schema in JSON format. To get the YAML format, I have to ...
1 vote
1 answer
1k views
SpringDoc/Swagger doc not displaying correct url
I have setup a base context-path for my spring boot 3 application and I am using spring-doc to display documentation in a swagger-ui. However, when deployed my apps url path gets prefixed with /...
3 votes
1 answer
4k views
After upgrade to Spring Boot 3 Swagger UI is not accessable
I had a Spring Boot 2.7.6 app with Spring Security 5.7.5 running without problems: authentication works, I navigate through the different pages according to roles, Swagger UI is usable, etc. I don't ...
10 votes
1 answer
10k views
SpringDoc OpenAPI using "springdoc-openapi-ui" vs "springdoc-openapi-webmvc-core"
Trying to implement spring doc for my microservices at the Spring Cloud gateway level. Came across these two dependencies. Want to know what is the difference between "springdoc-openapi-ui" ...
2 votes
2 answers
2k views
How to add headers when redirecting to an external url in angular
I have an angular 9 application + spring service which are authenticated against keycloak. The problem is that i want to open the spring swagger link in a new tab from the angular ui. Currently I am ...
-2 votes
1 answer
1k views
Customizing swagger static resources with Springdoc
According to the documentation (see the link below) the static resources can be customized with Java by extending SwaggerIndexPageTransformer and overriding the transform method. https://springdoc.org/...
1 vote
1 answer
980 views
Springdoc endpoints doesn't show up
Hello I have built a project in Thymleaf and wanted to generate the API documentation with swagger. But for some reason I can't explain, only endpoints annotated with @Rquestboy are documented. Does ...
0 votes
1 answer
4k views
Springdoc openapi 3 @Schema example ignored
@Schema Example is ignored by springdoc Openapi on one class property, but working on other property in the same class. Added @Schema(type = "integer", format = "int64", example =...
1 vote
1 answer
3k views
swagger url problem with springdoc-openapi
This is not the story of springfox This is the story of springdoc -openapi. my current dependency <dependency> <groupId>org.springdoc</groupId> <...
1 vote
2 answers
7k views
Spring Boot OpenAPI 3 with Spring Data REST
I'm failing at documenting my Spring Data REST API with OpenAPI. Nothing show in swagger-ui's homepage (and /v3/api-docs obviously). Here is an excerpt from my dependencies: <dependency> ...
0 votes
1 answer
914 views
How to add OpenApi/Swagger securitySchemes in Apache Camels RouteBuilder.restConfiguration()?
I try to add springdoc-openapi-ui and camel-springdoc-starter. Works not so bad. For now i've trouble with the context path '/camel' and with the missing securitySchemes. Does anyone have an idea how ...
1 vote
1 answer
2k views
Hide a method in springdoc-openapi based on a condition
We are working on a spring boot project which uses the springdoc-openapi library to generate the swagger document. We have a requirement where we need to hide a few of the APIs in a controller. Spring ...
5 votes
1 answer
10k views
springdoc-openapi how to display an array of strings as a response
There are no good examples out on the web of how to get the following output using the springdocs-openapi library (1.5.7). I'm looking to get the following output: [ "A", "B", &...