OpenAPI Generator
Describe your API endpoints with sample JSON requests and responses, and get a ready OpenAPI 3.1 (Swagger) spec in YAML or JSON. Schemas are created for you.
Endpoints
0 characters0 bytes
The schemas come from the samples. Path parameters such as {id} are added automatically.
How to Use It
- Type the title, the version, and the server of the API.
- For each endpoint, type the method, the path, and the JSON samples.
- Copy or download the document.
Questions and Answers
How is OpenAPI different from Swagger?
OpenAPI is the new name of the Swagger Specification. The document opens in Swagger UI and other OpenAPI 3.1 tools.
Good to Know
JSON bodies, the success response, and string path parameters only. Add query parameters, headers, security, and errors yourself.
Related Tools
- JSON Formatter and ValidatorPretty-print or minify JSON, or find its errors with the line and column.
- YAML Formatter and ValidatorFormat YAML with even indentation or check that it is valid. Comments stay, and an error shows its line and column.
- JSON and YAML ConverterConvert JSON to YAML or YAML to JSON. Several YAML documents become one JSON array.
Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)