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.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Set up the API

    Name, version, base URL.

  2. 2
    Choose auth

    Bearer, key or basic.

  3. 3
    Add endpoints

    Method, path, tag.

  4. 4
    Add parameters

    And JSON examples.

  5. 5
    Fix the checks

    Until none remain.

  6. 6
    Export

    Markdown, HTML, OpenAPI.

เกี่ยวกับเครื่องมือนี้

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.

ตัวอย่างพร้อมวิธีทำ

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.

สรุปสั้น ๆ

คำถามที่พบบ่อย

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.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา