swagger Questions

1

Solved

For some reason handling Form Data and File Upload at the same time raises an error. from typing import Annotated from pydantic import BaseModel, StringConstraints, EmailStr class RouteBody(BaseMod...
Clementclementas asked 24/9 at 18:59

2

Solved

I have generated some models using the Open API tool on one of our backend APIs with Swagger. I got the following as the enum definition: @Serializable enum class ClientBackgroundState(val value: k...
Audraaudras asked 30/5, 2022 at 11:37

3

I want to implement 2 Endpoints in my REST API: @PostMapping("/example") public ObjectResponse postObject(@RequestBody Example example){... //Add new Example to DB} @PutMapping("/ex...
Gasparo asked 4/12, 2020 at 12:3

2

There is some questions around this topic, but I dind't find the right way to do it. What I want is to define all parameters in a single place and reuse it with no need to write it again. I alread...
Myrlemyrlene asked 5/6, 2020 at 9:56

4

How do I update a REST API Client from a Swagger file in Visual Studio? I created my REST API Client via the "Add -> REST API Client" menu option when right-clicking on the project. See screenshot ...
Largeminded asked 3/8, 2016 at 18:13

3

Solved

I have included swagger-ui-express plugin in my node express REST API. While bundling with webpack in production mode, I am receiving as error such as SwaggerUIBundle is not defined. Without webpac...
Antistrophe asked 1/6, 2020 at 16:24

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

I have had no problem getting a json file in my Web API project using Microsoft's tutorial. Due to some requirement I would like to be able to retrieve a yaml file. But the problem is there is no ...
Francophobe asked 14/7, 2017 at 10:39

4

Solved

Can't authorize in a route using @nestjs/[email protected] because I dont know how to configure the Document` in a right way and I couldn't find a workable answer in authorization official doc...
Militate asked 16/8, 2021 at 20:28

9

Solved

I have a WebAPI project and I do a post-build process that calls "swagger.exe", which is a tool provided by NuGet Package. To install globally it, I used the following command: dotnet too...
Knudson asked 27/7, 2022 at 0:50

15

Solved

I'm trying to make a request to my local API from the Swagger documentation, but it always gives this error when I make the request
Meaningless asked 13/9, 2022 at 13:39

4

Solved

Requirements: Spring Boot application with Springfox Add BASIC authentication to Swagger Pass on all other requests Code: implemented @EnableWebSecurity @Configuration public class SecurityCo...
Paulita asked 25/4, 2018 at 14:2

5

I have an ASP.NET Core Web API 3 app that implements a REST API and uses a JWT bearer token for authorization, and Swagger (Swashbuckle). My controller has the [Authorize] filter on it, like: [Ap...
Byronbyrum asked 10/4, 2020 at 23:49

9

Solved

I have a symfony project, where I use api-platform. I have an entity, and I have data providers for it. I am in trouble with definition of additional parameters for a collection endpoint. An entity...
Boarhound asked 16/5, 2018 at 11:40

5

I am using swaggo generate API document based on godoc syntax. Source folder and files |-post |--controller.go |--response.go For this definition: controller.go package post ... // Index godoc ...
Conclusion asked 29/1, 2021 at 0:49

3

We have a Swagger.json output by using AddOpenApiDocument (see below). A snippet from the swagger as below shows it returns a 200 response type of application/json. The schema part (which I am not ...
Resistant asked 25/4, 2021 at 14:48

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

3

I am trying to generate OpenAPI (version 3.0.1) specification for my Java code. In order to achieve this I use Swagger Annotations (version 2.0.8) and Swagger Maven Plugin. I have a problem with E...
Pigtail asked 17/7, 2019 at 15:48

4

Solved

I am new to ASP.NET Core and this question looks simple but I couldn't find a proper solution online. So here's the problem. This is the structure of the class that I am using. public class Alert ...
Notarial asked 14/4, 2020 at 19:45

10

Solved

Implementing Swashbuckle/Swagger with .net Core 2 API I am now receiving the 500 error when accessing swagger.json: NotSupportedException: Ambiguous HTTP method for action - EBisAPI.Controller...
Collum asked 14/12, 2017 at 21:15

1

Is it possible to describe a HATEOAS REST API with OpenAPI? When I describe the API in HAL Format I would need to define three schemas for it (one for Request Payloads, one for Collection Resource ...
Pozzy asked 26/11, 2020 at 18:56

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

3

Following the example of an OpenAPI 3 definition: components: schemas: Foo: properties: string: type: string enumField: type: string enum: ['VALUE_1', 'VALUE_2'] Bar: properties: enumFi...
Chanukah asked 15/4, 2019 at 8:29

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

© 2022 - 2024 — McMap. All rights reserved.