---
title: "generate api docs"
description: "- API routes: !`find . -path \"*/routes/*\" -name \"*.js\" -o -path \"*/api/*\" -name \"*.js\" | head -20` - Current API files: @$ARGUMENTS"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/generate-api-docs
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:24:45.165Z
license: CC-BY-4.0
attribution: "generate api docs — Claudary (https://claudary.paisolsolutions.com/skills/generate-api-docs)"
---

# generate api docs
- API routes: !`find . -path "*/routes/*" -name "*.js" -o -path "*/api/*" -name "*.js" | head -20` - Current API files: @$ARGUMENTS

## Overview

---
allowed-tools: Bash(find:*)
description: Generate API documentation for endpoints
---

## Context

- API routes: !`find . -path "*/routes/*" -name "*.js" -o -path "*/api/*" -name "*.js" | head -20`
- Current API files: @$ARGUMENTS

## Your task

Generate comprehensive API documentation including:

1. **Endpoint Overview**: Method, URL, purpose
2. **Parameters**: Query params, path params, request body
3. **Request Examples**: Sample requests with curl
4. **Response Examples**: Success and error responses
5. **Status Codes**: All possible HTTP status codes
6. **Authentication**: Required auth if applicable

Format as clear, readable documentation that can be used by other developers.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/generate-api-docs) · https://claudary.paisolsolutions.com
