Top "Swagger" questions

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

Swagger Editor multiple parameters in body

So I understand that if we want body parameters we have to have a schema, which I do. The issue …

swagger swagger-editor
How to export a Swagger JSON/YAML file from Swagger UI?

How can I export a Swagger definition file (it should be a JSON or YAML file)? I am being asked …

swagger swagger-ui
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
swagger @ApiModelProperty example value for List<String> property

I have one class in which there is one property which is List<String> public class MyClass { .... @ApiModelProperty(…

java swagger springfox
Enum in swagger

I'm wondering how to document enums in swagger. According to JavaDoc The dataType. See the documentation for the supported datatypes. …

java swagger swagger-maven-plugin
How to define an optional parameter in path using swagger

There is a function in my REST web service working with GET method and it has two optional parameters. I …

web-services rest swagger
Post a json body with swagger

I would like to POST a json body with Swagger, like this : curl -H "Content-Type: application/json" -X POST -d {"…

json rest api swagger openapi
How to post files in Swagger (OpenAPI)?

I am using Swagger to document my REST services. One of my services requires a CSV file to be uploaded. …

swagger swagger-ui openapi
What is the correct way to declare a date in an OpenAPI / Swagger-file?

What is the correct way to declare a date in a swagger-file object? I would think it is: startDate: type: …

swagger openapi
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