API Documentation Generator
Set the API name, version, base URL and authentication, add endpoints with parameters, body and response examples, list error codes, fix the checks and export Markdown, HTML or OpenAPI files.
Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić
…
Jak to zrobić
- 1Set up the API
Name, version, base URL.
- 2Choose auth
Bearer, key or basic.
- 3Add endpoints
Method, path, tag.
- 4Add parameters
And JSON examples.
- 5Fix the checks
Until none remain.
- 6Export
Markdown, HTML, OpenAPI.
O tym narzędziu
Good API documentation tells a developer what each endpoint does, which parameters it takes, what to send and what comes back, and what the errors mean. Without it, every new client of the API needs a meeting or a look at the source code. The OpenAPI Specification is the standard machine-readable format for describing REST APIs, and many tools can turn an OpenAPI file into interactive docs, client libraries or tests, but writing the file by hand in YAML is slow and easy to get wrong. This generator lets you describe the API in a form and produces both readable documents and an OpenAPI 3.0.3 file. You set the API name, version, base URL, a description and the authentication method: none, bearer token, an API key header with its name, or HTTP basic. Each endpoint has a method, a path, a group tag, a summary and a description, any number of path, query or header parameters with type, required flag, description and example, an optional JSON request body example and one or more responses with status code, description and JSON example. A shared list of error codes completes the reference. The checks catch duplicate endpoints, paths that do not start with a slash, path parameters that are used but not described or described but not used, invalid JSON, status codes that are not real HTTP codes and GET or DELETE requests with a body. You can preview and copy the Markdown, OpenAPI JSON or YAML, and download a self-contained HTML page.
Who this is for
Backend developers, small teams that build APIs for their own apps, freelancers handing over a project, technical writers and students learning REST design.
Endpoints and groups
Group endpoints with a tag such as Orders or Customers. The Markdown and HTML outputs list endpoints under each tag, and the OpenAPI file keeps the tags for tools that group operations.
Parameters
Path parameters are written in braces, such as {order_id}, and must be described; the checks warn if one is missing. Query and header parameters can be optional, and an example value makes the docs easier to follow.
Schemas from examples
You do not have to write JSON Schema. The tool reads each request and response example and infers a schema: objects with their properties, arrays from their first item, integers, numbers, booleans and strings. Check the result, because an example cannot show which fields are optional.
Authentication
The chosen method becomes a security scheme in the OpenAPI file and a short instruction in the docs, such as sending an Authorization header with a bearer token.
Exports
Markdown suits a README or wiki, the HTML page can be hosted anywhere, and the OpenAPI JSON or YAML can be loaded into viewers, code generators and API testing tools.
Projects
Keep several APIs as separate projects, save a project file to move it to another machine and open it again later.
Limits
A documentation aid. It does not call your API or test that it behaves as documented, and inferred schemas are not an official contract until you review them.
Przykład z rozwiązaniem
The Orders API sample, version 1.2.0 at https://api.example.com/v1 with bearer token authentication, has 4 endpoints on 2 paths (GET and POST /orders, GET and PATCH /orders/{order_id}), 5 shared error codes and no problems found. The OpenAPI 3.0.3 file names the operations getOrders, postOrders, getOrdersByOrderId and patchOrdersByOrderId.
W skrócie
- Kategoria: Programowanie i dane
- Działa w przeglądarce, bez rejestracji i wysyłania.
- Wpisane informacje zostają na Twoim urządzeniu.
- Dostępne po angielsku.
- Treść ostatnio sprawdzona:
- Oficjalne źródło: OpenAPI Specification 3.0
Najczęstsze pytania
Which OpenAPI version does it produce?
OpenAPI 3.0.3, as JSON or YAML.
Do I need to write JSON Schema?
No. Schemas are inferred from your JSON examples; review them before publishing.
Which authentication types are supported?
None, bearer token, API key header and HTTP basic.
What does the check find?
Duplicate endpoints, undescribed path parameters, invalid JSON, bad status codes and bodies on GET or DELETE.
Can I import an existing OpenAPI file?
No. It opens project files saved from this tool.
Is my API data uploaded?
No. Projects are saved in your browser only.
