Generate comprehensive API documentation for REST, GraphQL, WebSocket APIs with OpenAPI specs, endpoint descriptions, request/response examples, error codes, authentication guides, and SDKs. USE WHEN user says 'viết document API', 'tạo API docs', 'generate API documentation', 'document REST endpoints', hoặc cần tạo technical reference cho developers.
Generate comprehensive API documentation for REST, GraphQL, WebSocket APIs with OpenAPI specs, endpoint descriptions, request/response examples, error codes, authentication guides, and SDKs. USE WHEN user says 'viết document API', 'tạo API docs', 'generate API documentation', 'document REST endpoints', hoặc cần tạo technical reference cho developers.
When to Activate This Skill
User nói "viết document API"
User muốn "tạo API documentation"
Cần generate "OpenAPI spec"
Cần document "GraphQL schema"
Cần tạo "developer guide" cho API
Cần document "webhook" hoặc "authentication"
Core Workflow
Phase 1: Gather API Information
Hỏi user những câu hỏi sau để hiểu rõ API:
API type: REST, GraphQL, WebSocket, gRPC?
Authentication: API key, OAuth, JWT, Bearer token?
Base URL: Production URL, versioning strategy?
Endpoints: Danh sách endpoints, mục đích của từng cái?