Category "swagger"

drf_yasg.generators: path component of api base URL http://localhost:8080/ is ignored; use FORCE_SCRIPT_NAME instead

I am using swagger (drf_yasg.generators) with Django and I get the following error message Error message is drf_yasg.generators: path component of api base UR

How to add Bearer {JWT} in swagger django?

when I authorize myself in Swagger UI, I have to write "Bearer {then I write JWT} here" How can I add the string "Bearer" automatically before the JWT token in

Swagger OpenAPI UI sending 403 response status for POST, PUT and DELETE Requests

Issue : Get request for Swagger UI openAPI is working , whereas other method types giving 403 error. Dependency : <dependency> <groupId>org.

How to provide completely custom JSON for example in Swagger?

I have Java endpoint which receives json-deserializable object. Unfortunately, Swagger is unable to auto-generate good example for it. Is it possible to provide

Create a custom response in Swagger Nestjs

I have my controller with @Post('email/register') @HttpCode(HttpStatus.CREATED) @ApiOkResponse(AuthConfigSwagger.API_OP_CREATE) @ApiCreatedResponse(Auth

.net framework setup swagger UI to point to index.html instead of swagger/ui/index

In all our .net core projects that use swagger, to access it we simply go to URL/index.html. However, for some reason the .net framework swagger is pointing to

Can I use variables in OpenAPI securitySchema? [duplicate]

This is what I want to do: "components": { "securitySchemes": { "azure_auth": { "type": "oauth2", "description": "

Fastify Swagger, add tag and description to fastify route

I'm using fastify 3.28.0 (plus fastify-swagger plugin) with typescript 4.6.2, and I'd like to add tags, description and summary inside every route. From docs: f

How to send form-encoded List<long> from SwaggerUI?

I'm getting 400 Bad Request on sending List<long> from SwaggerUI to .net application Swagger Response : {"statusCode":400,"message":["The value '"1","2",

How to inject openapi specification file with Swashbuckle.AspNetCore

services.AddSwaggerGen(x => { }); I have explored the AddSwaggerGen() method of NuGet Swashbuckle.AspNetCore. Unfortunately, I haven't foun

Cannot access api-docs of microservice from spring cloud gateway. Failed to load API definition

I'm trying to link my microservices to my gateway. , but I'm not able to access the api-docs of my microservice through the gateway. Error from Swagger-UI: Fail

Springdoc sends Multipart file as application/x-www-form-urlencoded and not multipart/form-data

I am using the latest version of openapi-ui 1.6.7 and I can't make a file upload endpoint work. This is my configuration of the parameter : @PostMapping(

Remove Model properties in WebAPI POST but keep for GET in Swagger

I have a few properties that capture timestamps when data is inserted or updated in the database. I don't want these properties visible in Swagger in POST reque

swagger url problem with springdoc-openapi

This is not the story of springfox This is the story of springdoc -openapi. my current dependency <dependency> <groupId>org.spri

How can I have multiple DTO's for NestJS Request Body/Swagger

so I have a route that can accept two different DTO's. I'm having difficulty getting these two DTO's to link/show up on swagger. I'm using the swagger plugin wi

When to use swagger route vs swagger operator

I am trying to auto-generate swagger.yaml file using go-swagger in my golang project. I understood difference between path and operation. And here are links for

Swagger - How to hide request fiends on API wise, for same input model?

Using Swagger with SpringBoot implementation "org.springframework.boot:spring-boot-starter-web:2.6.7" implementation "org.springdoc:springdoc-openapi-ui:1.6.8"

Swagger generation is ignoring SecurityDefiniton

Cannot understand one thing, why swag init command is generating everything, except SecurityDefinition block For example, this is my code on main function: // @

Disable pagination inspector on drf_yasg

I'm using drf_yasg to create my swagger document but I have an issue with PaginationInspector. In one of my views I declare a paginator and in swagger, is shown

How to get Swagger UI in SpringBoot (404 error)

I'm trying to add Swagger UI to my REST Api but I can't find swagger ui path or there is a problem with it. Because when I check the paths where swagger ui must