Start writing API reference documentation for an endpoint
Generates comprehensive API reference documentation for endpoints with schemas, examples, and error codes.
/plugin marketplace add lerianstudio/ring/plugin install ring-tw-team@ring[endpoint]You're starting API reference documentation. Follow these steps:
Endpoint to document: $ARGUMENTS.endpoint
Gather information about:
Every endpoint must include:
`POST /v1/organizations/{organizationId}/ledgers/{ledgerId}/accounts`
| Parameter | Type | Required | Description |
|---|
| Parameter | Type | Default | Description |
|---|
{
"field": "value"
}
| Field | Type | Required | Description |
|---|
{
"field": "value"
}
| Field | Type | Description |
|---|
| Status Code | Error Code | Description |
|---|
UUID: "The unique identifier of the [Entity]"
String with constraints: "[Purpose] (max N chars, format)"
Enum: "[Purpose]: value1, value2, value3"
Boolean: "If true, [behavior]. Default: value"
Timestamp: "Timestamp of [event] (UTC)"
Deprecated: "[Deprecated] Use newField instead"
Read-only: "Read-only. Generated by the system"
For complex API documentation, dispatch the api-writer agent:
Task tool:
subagent_type: "api-writer"
model: "opus"
prompt: "Document the [endpoint] endpoint. Include:
- All path/query parameters
- Complete request body schema
- Complete response schema
- All error codes
- Realistic examples"
After writing, use the docs-reviewer agent:
Task tool:
subagent_type: "docs-reviewer"
model: "opus"
prompt: "Review this API documentation for completeness and accuracy:
[paste documentation]"
| Type | Description | Example |
|---|---|---|
uuid | UUID v4 | 3172933b-50d2-4b17-96aa-9b378d6a6eac |
string | Text | "Customer Account" |
integer | Whole number | 42 |
boolean | True/false | true |
timestamptz | ISO 8601 (UTC) | 2024-01-15T10:30:00Z |
jsonb | JSON object | {"key": "value"} |
array | List | ["item1", "item2"] |
enum | Predefined values | currency, crypto |
Success: 200 (GET/PUT), 201 (POST), 204 (DELETE)
Errors: 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found), 409 (Conflict), 422 (Invalid), 429 (Rate Limited), 500 (Server Error)
Endpoint to document: $ARGUMENTS.endpoint
This command MUST load the skill for complete workflow execution.
Use Skill tool: writing-api-docs
The skill contains the complete workflow with: