api-doc
작성자: apify
Apify 엔드포인트에 대한 OpenAPI 사양 및 API 문서를 생성하거나 업데이트합니다. 사용자가 "API 엔드포인트 추가", "OpenAPI 사양 생성", "이것을 문서화…"라고 말할 때 사용합니다.
npx skills add https://github.com/apify/apify-docs --skill api-docAPI documentation
Process
- Identify change type - new endpoint, update endpoint, add code samples, or new schema
- Follow OpenAPI file structure:
- Paths in
apify-api/openapi/paths/ - Schemas in
apify-api/openapi/components/schemas/ - Code samples in
apify-api/openapi/code_samples/{javascript,curl}/
- Paths in
- Create or update files using naming conventions:
- Path files: replace
/with@(e.g.,request-queues@{queueId}.yaml) - Operation IDs:
{objectName}_{httpMethod}in camelCase - Code sample filenames must match
operationId
- Path files: replace
- Register in main spec - add path
$reftoapify-api/openapi/openapi.yaml - Validate -
pnpm openapi:lintthenpnpm api:rebuild
CRITICAL: API docs are generated, not hand-written. Never edit files in apify-api/docs/ directly.
For detailed patterns and examples, see .agents/skills/api-doc/references/openapi-patterns.md.
For edge cases and process notes, see .agents/skills/api-doc/references/process.md.