Questions tagged [springdoc-openapi-ui]

365 questions
0
votes
1 answer

400 Bad Request when getting v3/api-docs

I am using springdoc-openapi-starter-webmvc-ui to render my API schema (Spring Boot 3). org.springdoc springdoc-openapi-starter-webmvc-ui
0
votes
1 answer

Spring Boot WebSocket conflicts with SpringDoc Swagger UI: "Can "Upgrade" only to "WebSocket"

I have a Spring Boot application that uses WebSockets. I also want to expose Swagger UI using SpringDoc OpenAPI, but I'm running into an error. When I try to access Swagger UI on /swagger-ui/index.html/, I get an error message that says "Can…
0
votes
0 answers

getting runtime exception occurred in filters with Swagger (OpenAPI) iwhen parsing headers on https

When I am parsing header as x-abc-test, it working in my local but when deploy in my dev server it it running on https and it not working throwing error as "runtime exception occurred in filters" when I hit any end point any idea how can I make it…
0
votes
1 answer

SpringDoc schema how to use more than one @ExampleObject in the response

Any help or hint would be greatly appreciated it!! I am using SpringDoc to do the swagger generation. I am trying to use more than one "ExampleObject". But it doesn't seem to work for the below syntax. @ApiResponses( value = { …
Albert Lam
  • 9
  • 1
  • 3
0
votes
0 answers

springDoc not generating correctly for HttpStatus.NO_CONTENT

Any help or hint would be greatly appreciated it!! I have a java code that return "ResponseEntity(HttpStatus.NO_CONTENT)". The "springdoc-openapi-starter-webmvc-ui" is generating the below response for "204". Is this correct? [enter image…
Albert Lam
  • 9
  • 1
  • 3
0
votes
1 answer

swagger3 Pattern operation with springboot3

Its a springboot app with OAS3 . There is a controller which accepts id as Query parameter. @RequestMapping("/detail") public class Controller { @Operation( tags = "Shop APIs", summary ="Find Shop detail", responses = { …
0
votes
0 answers

404 Every Time I Try To Retrieve SpringDocs

I have the following library referenced in my POM file org.springdoc springdoc-openapi-ui 1.6.14 In my code I have the…
Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304
0
votes
0 answers

execute button in swagger ui (openapi ui) is not working

I am implementing OpenAPI Swagger UI, but execute button on service invocation block is not working or when clicked on the button, no action is performed. how to fix this issue?
developer
  • 9,116
  • 29
  • 91
  • 150
0
votes
1 answer

Is it possible to change the yaml base file location for Open API specification?

Is there any configuration that must be done in order to change the location of the yaml file in which the specification is described? Open API url In the attached picture I would like to set /swagger-ui/open-api.yaml instead of /open-api. I tried…
Maurice
  • 3
  • 2
0
votes
1 answer

springdoc openapi Failed to fetch

In my spring boot application i used springdoc openapi. org.springdoc springdoc-openapi-ui 1.6.11 All the api in my app is secure by…
Aymen Kanzari
  • 1,765
  • 7
  • 41
  • 73
0
votes
0 answers

OpenAPI definition does not include child objects in doc JSON

I am in the process of taking a look into polymorphism for OpenAPI. More specifically I am in trying out the example with the Pet, Cat and Dog found here using this portion of yaml: components: schemas: Pet: type: object …
akortex
  • 5,067
  • 2
  • 25
  • 57
0
votes
0 answers

How to enable request duration time in Swagger UI using Springdoc?

I am using the following dependencies for Swagger: implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: '2.2.7' implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.6.12' My Swagger…
0
votes
0 answers

Facing issue while adding Springdoc-openapi in Spring Framework based project (Not Spring Boot)

We have Spring framework (version 5.3.22) based application, not a spring boot. We have added springdoc-openapi (1.6.11) dependency along with below openapi configuration. @Configuration @EnableWebMvc @ComponentScan(basePackages =…
0
votes
1 answer

How to remove default endpoints brought from OpenAPI Swagger 3.0 specification

I have a SpringBoot application for which I have created a Swagger implementation. However, the new OpenAPI 3.0 specification brings a default section containing plenty of unnecessary endpoints / metadata. I could not find a solution yet to removing…
0
votes
0 answers

Error No bean named 'mvcConversionService' available

I am upgrading springboot 2.7 from 1.5 and using springdoc. I can compile and generate war file but when running it in webserver, there is this error: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name…
Bharata
  • 685
  • 3
  • 11
  • 23