API Documentation Generator: Markdown and OpenAPI Files
Document a REST API with endpoints, parameters, JSON examples and error codes, check it for mistakes, and export Markdown, HTML or OpenAPI 3.0.

An API without documentation forces every new developer to read the source or ask the person who wrote it. Writing the docs by hand is slow, and writing an OpenAPI file in YAML is slower still. The free API Documentation Generator lets you describe your API in a form and produces readable docs and a standard OpenAPI 3.0.3 file from the same source.
Projects are kept in your browser. Nothing is sent to a server, and the tool never calls your API.
What you describe
| Part | Details |
|---|---|
| API settings | Name, version, base URL, description |
| Authentication | None, bearer token, API key header, or HTTP basic |
| Endpoints | Method, path, tag, summary, description |
| Parameters | Name, in path, query or header, type, required, description, example |
| Request body | A JSON example |
| Responses | Status code, description and a JSON example for each |
| Error codes | A shared table of codes and meanings |
How to document an API
- Set up the API: name, version, base URL and a one-line description.
- Choose authentication. For an API key, also give the header name.
- Add endpoints with method, path and a group tag such as Orders.
- Describe parameters, especially every {placeholder} in the path.
- Paste JSON examples for request bodies and responses.
- Fix any checks, then export Markdown, HTML, OpenAPI JSON or YAML.
The checks
A panel lists anything that looks wrong: the same method and path listed twice, a path not starting with a slash, a path parameter used in the path but not described, or described but not used, a request or response example that is not valid JSON, a status code that is not a real HTTP code, an endpoint with no response, and a body on a GET or DELETE request. When everything is in order it says "No problems found".
A worked example
The default project is an Orders API, version 1.2.0, at https://api.example.com/v1, using bearer token authentication.
| Method | Path | Summary | Responses |
|---|---|---|---|
| GET | /orders | List orders | 200 |
| POST | /orders | Create an order | 201, 422 |
| GET | /orders/{order_id} | Get an order | 200, 404 |
| PATCH | /orders/{order_id} | Update order status | 200 |
That is 4 endpoints on 2 paths, with 5 shared error codes: 400, 401, 404, 422 and 429. The checks report no problems. In the OpenAPI file the operations are named getOrders, postOrders, getOrdersByOrderId and patchOrdersByOrderId, and a bearer security scheme is added and applied to every operation.
Schemas from your examples
You do not need to write JSON Schema. For each request and response example, the tool reads the JSON and builds a schema: objects with their properties, arrays from their first item, and integer, number, boolean or string for each value. In the create order example, "qty": 2 becomes an integer and "total": 39.8 becomes a number. An example cannot show which fields are optional or what values are allowed, so review the schemas before you publish them as a contract.
Which export to use
Markdown suits a README, a wiki or a docs site built from Markdown. The HTML file is a single self-contained page with coloured method labels that you can host anywhere or attach to an email. OpenAPI JSON and YAML can be loaded into API viewers, mock servers, testing tools and client code generators. Print / PDF gives a paper copy for a review meeting.
Parameters done right
Path parameters are always required in OpenAPI, so the generator marks them required whatever you choose. Give query parameters an example value, such as status=paid, because developers copy examples far more often than they read descriptions. Numbers and booleans in examples are converted to the right type in the OpenAPI file.
Authentication in the output
The method you pick appears twice. The readable docs get a short Authentication section, for example telling developers to send an Authorization header with a bearer token, or to put their key in the X-API-Key header. The OpenAPI file gets a matching security scheme under components. If you choose None, both are left out and the operations carry no security requirement.
Working on several APIs
Press New API to start another project and switch between them with the menu. Save project downloads a JSON file you can open on another computer with Open project. Undo and Redo cover every edit.
Limits
This is a documentation aid. It does not test that your API behaves as documented, it cannot import an existing OpenAPI file, and inferred schemas are not an official contract until you have checked them.
Frequently asked questions
Which OpenAPI version is produced?
OpenAPI 3.0.3, in JSON or YAML.
Do I have to write schemas?
No. They are inferred from your JSON examples.
Can I document an API key in a custom header?
Yes. Choose API key header and type the header name, such as X-API-Key.
Can I group endpoints?
Yes. Give each endpoint a tag; the docs list endpoints under each tag.
Is my API data uploaded?
No. Everything stays in your browser.
Final thoughts
The API Documentation Generator gives you human-friendly docs and a machine-readable OpenAPI file from one form. Describe every endpoint with real examples, clear the checks, and publish the format your users need.



