Top "Swagger" questions

Swagger is a framework implementation for describing, producing, consuming, and visualizing RESTful web services, based on the OpenAPI specification

Describe websocket api via Swagger

Is it possible to describe Websocket server api via Swagger? We have events broadcasting via websocket server and i want …

websocket swagger
Documenting Spring's login/logout API in Swagger

I am developing demo REST service using Spring Boot where user has to login in order to to perform certain …

java spring-boot swagger swagger-ui springfox
Swagger UI: pass custom Authorization header

I'm using Swashbuckle and Swagger on an ASP.NET Web API. I'm trying to find a way to pass an …

asp.net-web-api swagger swagger-ui swashbuckle
Specify an array as a parameter with Swagger

How do I specify an array as a parameter? For instance, post to /persons can be given strings username, firstname, …

rest yaml swagger openapi
Is there a way change the Controller's name in the swagger-ui page?

I'm using Swashbuckle to enable the use of swagger and swagger-ui in my WebApi project. In the following image you …

c# swagger swagger-ui swashbuckle
How to generate JSON examples from OpenAPI/Swagger model definition?

I'm building a fuzzer for a REST API that has an OpenAPI (Swagger) definition. I want to test all available …

json swagger swagger-2.0 swagger-codegen openapi
SpringFox Swagger - Optional and Mandatory fields in model

I used SpringFox library for rest documentation of my spring boot app. When I click on model , all the elements …

java spring spring-boot swagger springfox
Swagger UI - How can I expand all the operations by default?

All the operations appear collapsed when I open it and I want it to be expanded by default. Is there …

spring api spring-mvc swagger swagger-ui
How to specify that a pdf is returned in swagger?

I have a get call in my swagger REST API that needs to return a pdf file. There is no …

swagger swagger-ui swagger-2.0 swagger-editor
How to generate OpenApi 3.0 spec from existing Spring Boot App?

I have a project (Spring Boot App + Kotlin) that I would like to have an Open API 3.0 spec for (preferably …

spring-boot kotlin swagger openapi