Top "Swagger-2.0" questions

Swagger is a specification and framework implementation for describing, producing, consuming, and visualizing RESTful web services.

How can I represent 'Authorization: Bearer <token>' in a Swagger Spec (swagger.json)

I am trying to convey that the authentication/security scheme requires setting a header as follows: Authorization: Bearer <token&…

swagger swagger-2.0 swagger-editor
How to configure Spring Security to allow Swagger URL to be accessed without authentication

My project has Spring Security. Main issue: Not able to access swagger URL at http://localhost:8080/api/v2/api-docs. It …

spring-mvc swagger swagger-ui swagger-2.0 springfox
How to open local files in Swagger-UI

I'm trying to open my self generated swagger specification file my.json with swagger-ui on my local computer. So I …

file swagger swagger-ui swagger-2.0
How to describe this POST JSON request body in OpenAPI (Swagger)?

I have a POST request that uses the following JSON request body. How can I describe this request body using …

swagger swagger-2.0 openapi
How to generate swagger.json

I am using java spring boot framework to create REST api for my project and I am using "springfox-swagger2 and …

spring-mvc swagger swagger-ui swagger-2.0
How to define an enum in OpenAPI (Swagger)?

Does anyone know how to define possible 'enum' values in an OpenAPI 2.0 definition so that they will be displayed in …

swagger swagger-ui swagger-2.0 openapi
Swagger TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body

I have added Swagger to my Spring Boot 2 application: This is my Swagger config: @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean …

spring-boot swagger swagger-ui swagger-2.0
How can I generate swagger based off of existing postman collection?

I am developing a REST API. during development I have used postman (chrome extension) to use and document my API. …

swagger postman swagger-2.0
Swagger/OpenAPI mock server

I have an API reference in a Swagger file. I want to create a very simple mock server, so that …

mocking swagger swagger-2.0 openapi
Swagger UI - " TypeError: Failed to fetch" on valid response

I've just pulled down the latest Swagger from the Git repo (3.0.19) using: https://github.com/swagger-api/swagger-ui.git and updated …

swagger swagger-ui swagger-2.0