# Generate API Docs

> Create comprehensive API documentation for the current endpoints formatted as OpenAPI/Swagge...; keywords: api, openapi, swagger, error. Use only on explicit request; skip in routine implementation discussions.

- Skill: `gologo13/generate-api-docs` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gologo13/generate-api-docs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gologo13/generate-api-docs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: gologo13 (https://skillmd.com/u/gologo13)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/gologo13/generate-api-docs

---


# Generate API Documentation

## Overview

Create comprehensive API documentation for the current endpoints formatted as OpenAPI/Swagger specification or following the project's documentation standards.

## Steps

1. **API Overview**
    - Service description and purpose
    - Base URL and versioning information
    - Authentication and authorization requirements
    - Rate limiting and usage policies
2. **Endpoint Documentation**
    - HTTP method and URL path
    - Request parameters (path, query, body)
    - Request/response schemas with data types
    - Example requests and responses
    - Possible error codes and messages
3. **Data Models**
    - Define all data models and schemas
    - Include field descriptions and constraints
    - Show relationships between models
    - Provide example payloads
4. **Usage Examples**
    - Common use case scenarios
    - SDK and client library examples
    - CURL command examples
    - Error handling examples

## API Documentation Checklist

- [ ] API overview complete
- [ ] Endpoints documented
- [ ] Data models defined
- [ ] Usage examples provided
- [ ] Documentation formatted per project standards

