swagger Questions

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

4

is there some tool to generate rest API specification in a MS Excel/MS Word format or any other human friendly table-like document from Swagger/OpenAPI spec in YAML. The result should be accessible...
Hadfield asked 10/4, 2017 at 21:2

6

I installed Swagger in my ASP.Net MVC Core project and it is documenting my API beautifully. My co-worker asked me to install it in a full framework 4.6.1 project so I've done the following. In P...
Klink asked 14/2, 2017 at 21:36

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

5

Solved

I want to generate Swagger.Json file on build and use it in API gateway to configure the endpoints. I have tried following steps but its not working. Create a tool manifest: dotnet new tool-manifes...
Smedley asked 8/9, 2022 at 21:34

4

I'm building a fuzzer for a REST API that has an OpenAPI (Swagger) definition. I want to test all available path from the OpenAPI definition, generate data to test the servers, analyse responses c...
Croce asked 31/12, 2016 at 13:35

1

I want my controller endpoints marked with @ApiOperation to come in a certain order in the Swagger spec. Tried to set position on @ApiOperation like this: @ApiOperation(value = "xxx", position = 1...
Courier asked 27/2, 2018 at 8:7

8

Solved

Well, I'm using Swagger for my API documentation and it works perfectly in localhost, the problem begins when I host it on the IIS. For somereason it just doesn't work anymore localhost: https://...
Pamella asked 15/6, 2020 at 21:32

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

9

Solved

I have a project MyProject.Api with following structure: Controllers/ - Api/ - UsersController.cs - HomeController.cs Startup.cs where HomeController.cs looks like this: namespace MyProject.Ap...
Cracksman asked 11/8, 2019 at 23:2

4

Solved

I am using .NET 6, ASP.NET Core Web API 6. db PostgreSQL 15. DROP TABLE IF EXISTS account_object; CREATE TABLE account_object ( id uuid DEFAULT uuid_generate_v4 () birth_date date, created t...
Sandberg asked 29/10, 2022 at 15:21

5

net core Web API application. I have created swagger with Azure AD authentication. My swagger properly works when I am using IIS. When I run using docker I get This site can’t be reached. Below is ...
Fania asked 23/10, 2019 at 8:19

2

Solved

I'm using Swagger for dotnet core to document my dotnet core Web API. I've read the documentation telling me that I need to add [ProducesResponseType(typeof(XXXXX),200)] above the controller met...
Oratorian asked 26/9, 2017 at 13:57

2

Solved

I use OpenAPI spec to generate Java POJOs. What do I need to specify in Open API yaml to generate the equivalent of below POJO ? ... @JsonIgnore public String ignoredProperty; ... I have the yaml ...
Kelsy asked 18/11, 2020 at 17:44

3

I'm documention one of my api with multiple examples like this: @Operation(summary = "Create new") @PostMapping("") public ResponseEntity<Object> createOne( @Parameter(de...
Mortgage asked 18/2, 2021 at 16:9

3

Solved

Why is swagger-codegen generating project with missing dependencies? Running: java -jar swagger-codegen-cli.jar generate -l java -i swagger.json Generates a project with this for example: @javax.an...
Revegetate asked 27/4, 2021 at 10:53

5

I have a rest api made in Spring and am using Swagger for documentation. Recently a token based authentication was implemented. In the token, there are (internal) user's roles (authorities). Each c...
Everyman asked 20/4, 2017 at 15:51

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

3

Solved

The @nestjs/swagger doc describes here that defining an extra model should be done this way: @ApiExtraModels(ExtraModel) export class CreateCatDto {} But what is ExtraModel here ? The doc is not...
Omer asked 10/4, 2020 at 15:16

10

Solved

Using Web API and using swashbuckle to generate swagger documentation, I defined two different classes with the same name in two different namespaces. when I open swagger page in my browser it says...
Logistic asked 6/9, 2017 at 9:26

8

Solved

I've followed the instructions to create a Swagger documentation, and my documentation is now available using Swagger UI. I'd like to also generate the documentation as JSON or YAML so it's easy to...
Shaver asked 7/8, 2018 at 17:20

0

My Controller(AccountController) have a Action(Login) For Authentication and This Is My Program.Cs (I'm Using ASP.NET Core 8.0) : //... services.AddSwaggerGen(option => { option.AddSecurityDe...
Boydboyden asked 4/5, 2024 at 2:31

3

Solved

I'm having trouble rendering an example request body in openapi. I've distilled it down to this simple example: openapi: 3.0.2 info: title: Test version: "1" paths: /Users: post: req...
Pyorrhea asked 27/7, 2020 at 7:9

2

Solved

I'm making a Core 3.1 web API and using JsonPatch to create a PATCH action. I have an action named Patch which has a JsonPatchDocument parameter. Here is the action's signature: [HttpPatch("{i...
Lahey asked 6/1, 2021 at 16:18

© 2022 - 2025 — McMap. All rights reserved.