OpenAPI/Swagger Generator
Free online OpenAPI/Swagger generator, no installation required. Generate API specification documents
About OpenAPI Generator
Builds an OpenAPI 3.0.0 spec as pretty-printed JSON from API metadata (title, version, description, base URL) and a list of endpoints. Each endpoint carries an HTTP method, path, summary, parameters (query/path/header/cookie), optional request body, and response map; the output is emitted on the Preview tab with a copy button.
How to Use
1. On the Info tab, fill Title, Version, Description, and Base URL (used as servers[0].url). 2. On the Endpoints tab, click Add to create a new endpoint card. 3. Click a card to open the Edit Endpoint form and set Path, Method (GET/POST/PUT/DELETE/PATCH), Summary, and Description. 4. Open the Preview tab to read the live JSON and click Copy.
Path Item Assembly
Endpoints are grouped under paths by their path string. Each operation is keyed by the lowercase method (get, post, put, delete, patch) under its path item. Parameters become {name, in, schema:{type}, required, description} entries. When a request body is present it is emitted as content keyed by its content type with a generic object schema. The responses object is emitted verbatim from your response map.
▶How are multiple operations on the same path merged?
▶Does the tool emit a default response?
▶What OpenAPI version is produced?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee