Questions tagged [springdoc-openapi-ui]

365 questions
1
vote
0 answers

Is there any way to hide the "Try it out" option for specific API using OpenAPI 3 in Spring Boot?

We can hide "Try it out" option for Methods like GET,PATCH,POST, etc... by adding springdoc.swagger-ui.supportedSubmitMethods = Array=["get", "put", "post","patch"] in Application.properties file. and hide it for all Api by adding…
M123
  • 1,203
  • 4
  • 14
  • 31
1
vote
1 answer

How to have custom context Path for Swagger Url in OpenApi3 Springboot Application

I am migrating from springfox to OpenApi3 in my Springboot project as we have a requirement to upgrade to latest springboot with version 2.7.0 I need to configure custom contextPath for different environments like below dev -…
1
vote
2 answers

how to fix swagger-ui path

There was a problem with the Swagger document path. build.gradle implementation("org.springdoc:springdoc-openapi-ui:1.6.8") application.properties server.servlet.context-path: /poo REQ : http://localhost:port/poo/swagger-ui/index.html -> Failed to…
1
vote
0 answers

Keycloak integration with SpringDoc and spring boot

App stack: Spring boot / Spring Doc / Keycloak I am trying to integrate the above stack together, everything works well till I am using keycloak policy enforcement. At the bringing the app is running and I can access the Swagger UI served thanks to…
Mostafa Hassan
  • 288
  • 1
  • 14
1
vote
0 answers

openapi scheme generated does not contains "content" of EntityModel spring-hateoas entities

I'm using : springdoc-openapi-ui : 1.6.6 springdoc-openapi-hateoas: 1.6.8 swagger-models: 2.1.12 spring-hateoas: 1.4.1 When i retrieve the generated openapi scheme from my rest services i get responses format for hateoas EntityModel withtout the…
Sébastien
  • 69
  • 1
  • 8
1
vote
0 answers

How to update a Swagger UI after a Liquibase Changelog was done

I use springdoc-openapi-ui in my demo spring boot project. To play around with Liquibase, I created a dummy Entity @Entity @Table public class DummyEntity { // with field "dummyNumber" // with field "dummyText" // with field "phone" My Swagger UI…
Tristate
  • 1,498
  • 2
  • 18
  • 38
1
vote
0 answers

springdoc-openapi-ui does not read provided yaml configuration

I'm trying to migrate app from autogenerating openapi from existing controllers and model to yaml specification(from which controller interfaces/models will be generated). YAML file is ready, bean OpenAPI providing some information is gone, I set…
Martin Mucha
  • 2,385
  • 1
  • 29
  • 49
1
vote
2 answers

Springdoc sends Multipart file as application/x-www-form-urlencoded and not multipart/form-data

I am using the latest version of openapi-ui 1.6.7 and I can't make a file upload endpoint work. This is my configuration of the parameter : @PostMapping( consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces =…
Jonas Kistler
  • 21
  • 1
  • 3
1
vote
0 answers

Swagger error - Blocked:mixed-content - Spring Open Api 3.0

I have a Java 11 project with spring boot 2.4.0, which was running with swagger 2.0 and we decided to migrate to Open Api 3.0. Before migration, swagger was working fine, but now there is always a CORS error in swagger ui. If I go to the Network tab…
1
vote
1 answer

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 anyone have any idea where this might be? enter…
Sniphs
  • 35
  • 4
1
vote
1 answer

SpringDoc OIDC: how to show only Implicit Flow among the available authorizations?

I'm trying to configure SpringDoc/Swagger-UI in order to show only the Implicit Flow when clicking on the Authorize button. However, it shows all the possible authorization methods supported by the IDAM, as show at…
1Z10
  • 2,801
  • 7
  • 33
  • 82
1
vote
0 answers

OpenAPI, contract-first with Springdoc and multiple specs

I am trying to port a Swagger UI from Springfox to Springdoc. The Swagger UI is generated via Maven plugin org.openapitools openapi-generator-maven-plugin ... from two different OpenAPI specifications,…
1
vote
1 answer

Springdoc OpenAPI multiple servers json

I am looking into the possibility to have one central swagger UI where you can see the /v3/api-docs from multiple localhost. My idea for this was to have multiple GroupedOpenApi Beans were each goes to a different localhost. For…
1
vote
1 answer

Spring + OpenAPI3 getting Swagger 404 when using static openApi.yaml file

I have a simple spring application setup, with an openAPI dependency, in my pom file I added: org.springdoc springdoc-openapi-ui 1.6.6
eagle009
  • 11
  • 2
1
vote
2 answers

Adding security to Openapi after converting from SpringFox

I'm converting from SpringFox to springdoc openapi. I can't figure out how to get authorization working. I added these annotations on my config class @Configuration @OpenAPIDefinition(info = @Info(title = "My API", version =…