Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 12 hours ago. Improve this question It shows failed to load API definition for one service only REST services are working fine network of the swagger is shown in the image Answer Do
Tag: swagger
Is it possible to generate Openapi spec file from the another spec with slight modifications?
Suppose I have Openapi specification file (api-docs.yml). I need to create a copy of it with: different servers block filtered paths by tag (with removing unnecessary schemas) Do any solutions exist to make such things, or it’s only possible to write your own parser? I’m using Java so Java-based solutions (maven plugins etc.) are preferred. Answer Do any solutions exist
How to handle header field with swagger in a java project?
I want to add header parameters to swagger ui so that the user can pass these values also. Could someone guide on what the java code for this would look like. I am using springfox-swagger2 and springfox-swagger-ui version 2.9.x (There are other post of SOF that describe about adding these through swagger editor or are for other technologies, so they
Is OpenAPI v.3 incomplete or convertor is wrong?
I am trying to validate some data for the REST API using swagger description. I have converted swagger.json into OpenAPI 3.0.1 using swagger editor conversion option, and now trying to read it into …
How to make Swagger put new line in the generated HTML (in Swagger UI page)?
I have a REST service method annotated with io.swagger.annotations.ApiOperation @ApiOperation(value = “some string”) I need some string to generate newlines in the HTML page swagger-ui.html (i.e. …
How to annotate array of objects response in Swagger
I have to debug a REST API Java project that has been developed using Swagger.I’m new to it, so I’m a little bit confused on how to do certain things. For example, here’s one method: @GET @Path(“/…
Swagger/OpenAPI annotations V3 – use Enum values in swagger annotations
I’m creating the the API description of our application using Swagger/OpenApi V3 annotations, imported from following dependency: One of the annotations is a @Schema annotation that accepts an attribute named allowableValues which allows a an array of strings: Now I would like to use a custom method constructed on our Enum class that returns the allowable strings array, so it
Hiding unimportant getter methods from swagger UI in Java
I have two fields in my class startDate and endDate of LocalDateTime. Internally, these need to be returned as Optional, while in the query they are provided as LocalDateTimes. @…
Generate Unit Test Code from Swagger API for Java REST
I was trying using Swagger test templates and found this an interesting tool to generate the test files for my controllers, but It seems to just work for NodeJs projects, because there is not a similar tool for the Java platform. Do somebody knows about how to generate these Test files from my controllers by using a swagger file for