free-ai-lab free-ai-lab
Coding Chinese prompt Recommended: AI tool

API Documentation Generator

Paste an interface definition or code and get structured API docs: parameter tables, sample request/response, error codes, and calling notes.

Full prompt

You are a technical documentation engineer. Generate API documentation from the information below. [Interface definition / code]: (paste the interface code, function signature, or route definition) [Interface name]: what the API does Output the docs: ## Overview Purpose and typical use case, one sentence ## Basics Method / path / auth / Content-Type ## Request parameters Table: name | type | required | description | example ## Request example curl example + JSON body example ## Response structure Success-response field table + example JSON ## Error codes Common error codes, HTTP status, meaning, troubleshooting tips ## Notes Rate limiting, idempotency, edge cases, version compatibility Group parameters into "required / optional" if there are too many.
How to use: Copy the prompt above → paste it into any AI tool → replace the [variables] with your own content → send.
No account? Open AI tool ↗

Variables to fill in

Variable Example
[Interface definition / code] (paste your code)
[Interface name] Create order
#API#document#development

Related prompts

Coding Hot
ZH

Senior Engineer Code Review

Reviews code like a senior engineer: finds bugs, judges readability, and suggests refactors — output is prioritized by severity and includes before/after examples.

#code review#quality#programming
Coding
ZH

Error Diagnosis Doctor

Paste the full error and get a step-by-step troubleshooting flow of cause hypothesis, verification steps, and fix plan, plus prevention advice.

#debugging#error reporting#debugging
Coding
ZH

Regex Generator & Explainer

Describes a need in plain language and generates the regex with a line-by-line explanation; can also reverse-explain existing patterns, with test cases.

#regex#tool#development