swagger-ui Questions

4

In my localhost, my swagger UI working well. localhost:3030/documentation This UI was working on the server also but from today on the server it is not working https://digitalpathshalabd.com/docume...
Mediate asked 18/9, 2020 at 9:56

4

Solved

Swagger UI has the displayRequestDuration parameter to show how long a request takes. It's disabled by default. How can this be enabled in the SwaggerConfig.cs configuration when using Swashbuckle...
Reede asked 24/1, 2019 at 16:30

3

While using swagger-editor I create the below YAML that shows an example of the response object. It's properly displaying in the swagger-editor. When I then download the JSON and display it in swag...
Melissiamelita asked 27/1, 2017 at 23:4

4

Solved

I'm a bit lost about this, because it usually works out of the box. I'm making a small java spring-boot rest api, and to get a nice API desc and test page, I use Swagger. Except this time it doesn'...
Tullius asked 30/3, 2021 at 8:40

6

Solved

Always I used to share my node side services to some other teams with proper documentation. Based on this documentation, they will use my services. Regarding this, when I spoke with some other guy...
Marmite asked 13/12, 2015 at 2:50

4

Solved

Could you please describe how to indicate the base URL in the documentation automatically generated by Flask Restplus? I am running the following code but nothing shows up in the swagger UI: from...
Bissau asked 26/4, 2017 at 11:19

3

I'm trying to define a file download endpoint using the OpenAPI spec (v3). I am facing two problems. 1) the file is not being downloaded 2) within swagger-ui, the response body shows a message that...
Galiot asked 9/1, 2018 at 1:3

4

I would like to disable Try it Out button in the API documentation. I have tried "tryItOut": false in the parameter and the configuration. Furthermore, I'm using swagger 2.0 which has 'Tr...
Benefield asked 9/7, 2021 at 6:53

4

Solved

I want to do API key based authentication on a WebAPI project with Swashbuckle (swagger for .net). I have configured swashbuckle as below: config .EnableSwagger(c => { c.ApiKey("apiKey") ....
Ratite asked 2/5, 2016 at 5:14

9

Solved

I am using the Swashbuckle package for WebAPI and am attempting to customize the look and feel of the swagger UI default page. I would like to customize the default swagger logo/header. I have adde...
Brendis asked 2/8, 2016 at 7:3

7

I'm using Spring MVC as a rest controller and I've integrated Swagger-ui with my controller using Springfox. I'd like to have a method that is able to upload a file via the Swagger-ui interface. I ...
Hoem asked 15/7, 2015 at 1:45

5

Solved

Code Full codebase & folder structure can be seen in GitHub Here is the Swagger related route (had to make it a standalone server) // api/v1.ts import express = require("express"); i...
Raze asked 11/9, 2021 at 20:33

1

i created .yaml file and i converted it js form. my codes are written ES6. when i run the app by using vercel cli with vercel-dev i can view swagger ui .but after vercel-prod command i can view m...
Lotze asked 4/3 at 14:55

8

Solved

I use Swagger-php. When I define a parameter that's on the query string it can be an array. But from what I can see, it doesn't support this kind of querystring: https://api.domain.tld/v1/objects?...
Tipper asked 17/6, 2016 at 9:31

4

Solved

I am using springdoc-openapi with the latest version (1.3.0). Now I would like sort my tags in the UI by "name" property. I know about the "springdoc.swagger-ui.tagsSorter" configuration and that ...
Coldblooded asked 23/3, 2020 at 8:28

7

Solved

I have a Swagger config like this @EnableSwagger2 @Configuration public class SwaggerConfig { @Bean public Docket api() { List<SecurityScheme> schemeList = new ArrayList<>(); schem...
Shanitashank asked 26/5, 2018 at 17:18

7

Solved

I use Swagger UI to display API documentation. By default, it displays the "Models" section at the bottom: How to hide it?
Susy asked 22/7, 2019 at 2:39

12

Spring Boot 2.6.3 with Springdoc. <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>1.6.5</version> ...
Heartrending asked 29/1, 2022 at 13:50

4

Swagger2 (springfox) worked with: @Bean public Docket getDocket() { return new Docket(DocumentationType.SWAGGER_2) .select() .apis(RequestHandlerSelectors.withClassAnnotation(RestController.clas...
Seacoast asked 29/5, 2020 at 20:10

2

I have an enum of other definitions in my Swagger spec: "action": { "title": "Action", "description": "Action to apply to matching requests", "type": "object", "enum": [ {"delayAction": {"$r...
Dashiell asked 19/9, 2016 at 4:27

10

I have 2 HTTP GET method in same controller and give me this error HTTP method "GET" & path "api/DataStore" overloaded by actions - DPK.HostApi.Controllers.DataStoreController.GetByIdAsync (...
Leukorrhea asked 19/1, 2019 at 12:33

3

I have built a nestjs webapi and implemented versioning at controller and action level as per https://docs.nestjs.com/techniques/versioning The solution i am looking into is, i want to generate 2 d...
Perilous asked 10/2, 2022 at 6:13

2

Is it possible to access a model definition of via swagger-ui directly via an anchor? In the example page http://petstore.swagger.io/ I see that the anchor works for a groups of endpoints, e.g. h...
Antagonism asked 19/10, 2017 at 10:6

5

Solved

I want to add a header parameter field in the auto-generated swagger ui documentation of my rest service. I use Spring and Springfox. public ResponseEntity<User> saveNewUser( @ApiParam(valu...
Reynolds asked 25/11, 2016 at 9:22

11

Solved

How can I export a Swagger definition file? It should be a JSON or YAML file, e.g. swagger.json or swagger.yaml. Let's say I have an endpoint looking like http://example.com//swagger/ui/index#!: T...
Reiko asked 30/1, 2018 at 15:54

© 2022 - 2024 — McMap. All rights reserved.