Top "Openapi" questions

The OpenAPI Specification, originally known as the Swagger Specification, is a specification for machine-readable interface files for describing, producing, consuming, and visualizing RESTful Web services.

How to define constant string in Swagger open api 3.0

How to define constant string variable in swagger open api 3.0 ? If I define enum it would be like as follows "…

swagger openapi
In swagger, is it possible import multiple yaml files in one single file?

For the Client this one is inside of client.yaml /clients: get: tags: - "Clients" description: "List Clients The list …

swagger swagger-editor openapi
Generate Java Spring API from OpenAPI 3

I tried to generate Spring REST interfaces from OpenAPI v3 YAML file. Build says: Successfully generated code to property(class …

java spring gradle openapi openapi-generator
Generate Swagger YAML Open API Spec programmatically from WSDL/XML

I have a SOAP API already defined via WSDLs. Is there any tool that I can use to convert WSDL …

rest yaml swagger openapi yamldotnet
What is the 'scopes' field of the swagger security scheme object used for?

petstore_auth: type: oauth2 authorizationUrl: http://swagger.io/api/oauth/dialog flow: implicit scopes: write:pets: modify pets in your …

swagger openapi
Issue 'Authorization: Bearer <token>' in a Swagger openAPI Annotations

I use these packages (installed via composer) "swagger-api/swagger-ui": "^3.0", "zircote/swagger-php": "~2.0|3.*" In my def controller I have these annotations /** * @OA\…

php swagger openapi swagger-php
How to use Swagger Codegen TypeScript Fetch Client

Has anyone successfully used the Swagger Code Generator to create a TypeScript Fetch client that can be used within the …

typescript npm swagger swagger-codegen openapi
How to send a JSON object as part of a multipart request in Swagger Editor?

I'm writing API documentation using Swagger Editor, but having a problem with a multipart POST request containing a JSON object. …

swagger-2.0 openapi swagger-editor
How to avoid CORS errors ("Failed to fetch" or "Server not found or an error occurred") when making requests from Swagger Editor?

I have the following OpenAPI definition: swagger: "2.0" info: version: 1.0.0 title: Simple API description: A simple API to learn how to …

cors swagger swagger-ui openapi swagger-editor
Re-using model with different required properties

I have a path that uses complex models with almost identical properties for each http method. The problem is that …

swagger openapi