Questions tagged [springdoc-openapi-ui]

365 questions
0
votes
1 answer

Swagger V3 UI Not Sending In Authorization Header When 'Trying it Out"

I have a Spring Boot App (2.7.10) and am using the Sprspringdoc-openapi-ui dependency (1.6.15). I have annotated my controller and it seems to be displaying correctly, however when I try and execute one of the endpoints which requires an…
ustad
  • 459
  • 1
  • 6
  • 21
0
votes
0 answers

How to have examples in @Parameter in OpenAPI (Swagger) in Spring Boot?

I am wanting to essentially replicate a @RequestBody with @Parameter. I found this in Swagger documentation: "Also without a @RequestBody annotated parameter and with no @RequestBody annotation at method level or as field of Operation#requestBody,…
zakpruitt
  • 162
  • 2
  • 11
0
votes
1 answer

SpringBoot OpenApi Doc OpenAPI, non-primitives objet are not nullable

i have a response model entity ResponseEntity: RespDTO: @Getter @Setter public class RespDTO implements Serializable{ /** * */ private static final long serialVersionUID = 1L; @Schema(nullable = true) private Long…
0
votes
0 answers

What use does Spring data jpa gives to classgraph dependency? Conflict between dependencies with Springdoc

I had a dependencies problem between Spring data jpa 2.7.2 and springdoc-openapi-ui 1.6.3, the conflicting dependency is: io.github.classgraph classgraph I have never seen…
0
votes
0 answers

How do I get the swagger-codegen-maven-plugin plugin to use the "errorOnUnknownEnum" property?

I'm using the following io.swagger.codegen.v3 swagger-codegen-maven-plugin 3.0.42 In my Swagger plugin configuration, I have set …
0
votes
0 answers

Springdoc with multiple api-doc in diferent URL and PATH

I have an api in java 8 with springboot 2.7.5 and springdoc-openapi-ui 1.7.0 version. I have three controller in this api like this: /controllerOne (group = ControllerOne) /controllerTwo (group = ControllerTwo) /controllerThree (group =…
0
votes
0 answers

relative redirectUri to keycloak with spring openapi swagger-ui

I do have a Spring Boot Application which serves a REST API. Authentication and authorisation is handled by KeyCloak. springdoc-openapi-ui is used to document the API and configured to allow a user to authenticate against Keycloak ("Authorize"…
Kai
  • 871
  • 2
  • 18
  • 39
0
votes
0 answers

Failed to get the response in Swagger 3 (open api) while using Java 19 and Spring Boot 3.0.x

I'm migrating from Spring Boot 2 to Spring Boot 3 with Java 19 and also using swagger 3 that's open api. I have added the "open api webmvc ui" dependency in POM file and also changed Javax to Jakarta. I have configured in open api configure file.…
0
votes
0 answers

SpringDoc OpenAPI 1.7.0 for Spring prevent adding Bearer in front of Bearer

I work with legacy Spring project and some of the endpoint accept Authorization header without and prefix, like Bearer or Basic. So it is just plain string. For example: Authorization: The springdoc or swagger-ui library actually depend on the…
Bharata
  • 685
  • 3
  • 11
  • 23
0
votes
0 answers

Enabling Authorize button for auth in swagger API using springdoc-openapi-starter-webmvc-ui

How to enable authorize button on the top right for OAuth 2.0 I added springdoc-openapi-starter-webmvc-ui for spring boot version 3.0.2. Can someone help me enable authorize button
0
votes
0 answers

Open API: Header authentication is not going in the curl request

I am using Java: 19 Springboot: 3 springdoc-openapi-starter-webmvc-ui: 2.0.4 OpenApi30Config.java package com.example.foo.bar.config; import io.swagger.v3.oas.annotations.OpenAPIDefinition; import…
Prafulla Kumar Sahu
  • 9,321
  • 11
  • 68
  • 105
0
votes
1 answer

Apache Camel REST post body parameter not shown in OpenAPI / Swagger doc

I am trying to set up a REST service with Apache Camel (v3.20.0) that, among other routes, offers a POST endpoint that receives a payload in the request body. I am trying to document my REST interface using the camel-openapi-java package using Java…
0
votes
0 answers

Configuring @Parameter() from swagger globally with ETagArgumentResolver class

I am currently configuring Swagger UI/OpenAPI 3 for my project, which uses Spring Boot and Kotlin. The update endpoints in my controllers include the ETag argument, which I send it to backend as If-Matcher. I have added the ETag argument as an…
user6941415
0
votes
1 answer

Encounter classdefnotfound error for reactivetransactionmanager class after upgrading spring-fox swagger to Open-api doc

I am trying to upgrade from swagger spring-fox to open-api in a spring-boot application and I am encountering below error. caused by java.lang.noclassdeffounderror org/springframework/transaction/reactivetransactionmanager. I tried adding…
har123
  • 49
  • 6
0
votes
0 answers

SpringDoc Displays Additional Infomration about API

I'm trying to generate documentation for my API and i used SpringDoc for this task and i'm using maven with the following pom.xml