api-documentation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAPI Documentation Workflow
API文档工作流
Overview
概述
Specialized workflow for creating comprehensive API documentation including OpenAPI/Swagger specs, developer guides, code examples, and interactive documentation.
用于创建全面API文档的专用工作流,涵盖OpenAPI/Swagger规范、开发者指南、代码示例和交互式文档。
When to Use This Workflow
何时使用此工作流
Use this workflow when:
- Creating API documentation
- Generating OpenAPI specs
- Writing developer guides
- Adding code examples
- Setting up API portals
在以下场景使用此工作流:
- 创建API文档
- 生成OpenAPI规范
- 编写开发者指南
- 添加代码示例
- 搭建API门户
Workflow Phases
工作流阶段
Phase 1: API Discovery
阶段1:API发现
Skills to Invoke
需调用的技能
- - API documentation
api-documenter - - API design
api-design-principles
- - API文档
api-documenter - - API设计
api-design-principles
Actions
操作步骤
- Inventory endpoints
- Document request/response
- Identify authentication
- Map error codes
- Note rate limits
- 盘点接口端点
- 记录请求/响应信息
- 识别认证方式
- 映射错误代码
- 记录速率限制
Copy-Paste Prompts
可复制粘贴的提示词
Use @api-documenter to discover and document API endpointsUse @api-documenter to discover and document API endpointsPhase 2: OpenAPI Specification
阶段2:OpenAPI规范
Skills to Invoke
需调用的技能
- - OpenAPI
openapi-spec-generation - - API specs
api-documenter
- - OpenAPI
openapi-spec-generation - - API规范
api-documenter
Actions
操作步骤
- Create OpenAPI schema
- Define paths
- Add schemas
- Configure security
- Add examples
- 创建OpenAPI schema
- 定义路径
- 添加schemas
- 配置安全设置
- 添加示例
Copy-Paste Prompts
可复制粘贴的提示词
Use @openapi-spec-generation to create OpenAPI specificationUse @openapi-spec-generation to create OpenAPI specificationPhase 3: Developer Guide
阶段3:开发者指南
Skills to Invoke
需调用的技能
- - Documentation
api-documentation-generator - - Templates
documentation-templates
- - 文档生成
api-documentation-generator - - 文档模板
documentation-templates
Actions
操作步骤
- Create getting started
- Write authentication guide
- Document common patterns
- Add troubleshooting
- Create FAQ
- 创建快速入门内容
- 编写认证指南
- 记录通用模式
- 添加故障排查内容
- 创建FAQ
Copy-Paste Prompts
可复制粘贴的提示词
Use @api-documentation-generator to create developer guideUse @api-documentation-generator to create developer guidePhase 4: Code Examples
阶段4:代码示例
Skills to Invoke
需调用的技能
- - Code examples
api-documenter - - Tutorials
tutorial-engineer
- - 代码示例
api-documenter - - 教程编写
tutorial-engineer
Actions
操作步骤
- Create example requests
- Write SDK examples
- Add curl examples
- Create tutorials
- Test examples
- 创建请求示例
- 编写SDK示例
- 添加curl示例
- 创建教程
- 测试示例
Copy-Paste Prompts
可复制粘贴的提示词
Use @api-documenter to generate code examplesUse @api-documenter to generate code examplesPhase 5: Interactive Docs
阶段5:交互式文档
Skills to Invoke
需调用的技能
- - Interactive docs
api-documenter
- - 交互式文档
api-documenter
Actions
操作步骤
- Set up Swagger UI
- Configure Redoc
- Add try-it functionality
- Test interactivity
- Deploy docs
- 搭建Swagger UI
- 配置Redoc
- 添加“试用”功能
- 测试交互性
- 部署文档
Copy-Paste Prompts
可复制粘贴的提示词
Use @api-documenter to set up interactive documentationUse @api-documenter to set up interactive documentationPhase 6: Documentation Site
阶段6:文档站点
Skills to Invoke
需调用的技能
- - Documentation architecture
docs-architect - - Documentation
wiki-page-writer
- - 文档架构
docs-architect - - 文档编写
wiki-page-writer
Actions
操作步骤
- Choose platform
- Design structure
- Create pages
- Add navigation
- Configure search
- 选择平台
- 设计结构
- 创建页面
- 添加导航
- 配置搜索功能
Copy-Paste Prompts
可复制粘贴的提示词
Use @docs-architect to design API documentation siteUse @docs-architect to design API documentation sitePhase 7: Maintenance
阶段7:维护
Skills to Invoke
需调用的技能
- - Doc maintenance
api-documenter
- - 文档维护
api-documenter
Actions
操作步骤
- Set up auto-generation
- Configure validation
- Add review process
- Schedule updates
- Monitor feedback
- 搭建自动生成机制
- 配置验证规则
- 添加审核流程
- 安排更新计划
- 监控反馈
Copy-Paste Prompts
可复制粘贴的提示词
Use @api-documenter to set up automated doc generationUse @api-documenter to set up automated doc generationQuality Gates
质量检查项
- OpenAPI spec complete
- Developer guide written
- Code examples working
- Interactive docs functional
- Documentation deployed
- OpenAPI规范已完成
- 开发者指南已编写
- 代码示例可正常运行
- 交互式文档功能正常
- 文档已部署
Related Workflow Bundles
相关工作流包
- - Documentation
documentation - - API development
api-development - - Development
development
- - 文档编写
documentation - - API开发
api-development - - 开发流程
development