File contents 🌐 Docs API
API documentation ve OpenAPI best practices.
📋 OpenAPI Template
openapi: 3.0.3
info:
title: User API
version: 1.0.0
paths:
/users:
get:
summary: List users
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/User'
components:
schemas:
User:
type: object
properties:
id: { type: string }
email: { type: string, format: email }
📝 Endpoint Doc Template
## Create User
`POST /api/v1/users`
### Request
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| email | string | Yes | Valid email |
| password | string | Yes | Min 8 chars |
### Response (201)
{ "success": true, "data": { "id": "...", "email": "..." } }
### Error (400)
{ "success": false, "error": { "code": "VALIDATION_ERROR" } }
Docs API v1.1 - Enhanced
🔄 Workflow
Kaynak: Redocly OpenAPI Workflow & API Handyman
Aşama 1: Design (Spec First)
Aşama 2: Documentation
Aşama 3: Publication
Kontrol Noktaları
Aşama
Doğrulama
1
spectral lint openapi.yaml hatasız geçiyor mu?
2
Oluşturulan dokümantasyonda "Try it out" çalışıyor mu?
3
Tüm zorunlu alanlar (required) şemada işaretli mi?
1 --- 2 name: docs-api 3 description: 🌐 Docs API 4 --- 5 6 # 🌐 Docs API 7 8 > API documentation ve OpenAPI best practices. 9 10 --- 11 12 ## 📋 OpenAPI Template 13 14 ```yaml 15 openapi: 3.0.3 16 info: 17 title: User API 18 version: 1.0.0 19 20 paths: 21 /users: 22 get: 23 summary: List users 24 responses: 25 '200': 26 description: Success 27 content: 28 application/json: 29 schema: 30 $ref: '#/components/schemas/User' 31 32 components: 33 schemas: 34 User: 35 type: object 36 properties: 37 id: { type: string } 38 email: { type: string, format: email } 39 ``` 40 41 --- 42 43 ## 📝 Endpoint Doc Template 44 45 ```markdown 46 ## Create User 47 48 `POST /api/v1/users` 49 50 ### Request 51 | Field | Type | Required | Description | 52 |-------|------|----------|-------------| 53 | email | string | Yes | Valid email | 54 | password | string | Yes | Min 8 chars | 55 56 ### Response (201) 57 { "success": true, "data": { "id": "...", "email": "..." } } 58 59 ### Error (400) 60 { "success": false, "error": { "code": "VALIDATION_ERROR" } } 61 ``` 62 63 --- 64 65 *Docs API v1.1 - Enhanced* 66 67 ## 🔄 Workflow 68 69 > **Kaynak:** [Redocly OpenAPI Workflow](https://redocly.com/docs/cli/) & [API Handyman](https://apihandyman.io/) 70 71 ### Aşama 1: Design (Spec First) 72 - [ ] **Mock**: `prism` veya `stoplight` ile API'yi kodlamadan önce mockla. 73 - [ ] **Lint**: OpenAPI dosyasını `spectral` ile standartlara (CamelCase, Descriptions vb.) göre denetle. 74 - [ ] **Structure**: Tek devasa dosya yerine `$ref` kullanarak bileşenlere böl (`components/schemas/User.yaml`). 75 76 ### Aşama 2: Documentation 77 - [ ] **Descriptions**: Her endpoint ve parametre için anlamlı açıklama yaz. 78 - [ ] **Examples**: Başarılı ve hatalı (4xx, 5xx) response örneklerini mutlaka ekle. 79 - [ ] **Auth**: Security şemalarını (Bearer, OAuth2) net şekilde tanımla. 80 81 ### Aşama 3: Publication 82 - [ ] **Generate**: `redoc-cli bundle` veya `swagger-cli` ile statik HTML oluştur. 83 - [ ] **Version**: API versiyonunu ve değişiklik günlüğünü (Changelog) güncelle. 84 85 ### Kontrol Noktaları 86 | Aşama | Doğrulama | 87 |-------|-----------| 88 | 1 | `spectral lint openapi.yaml` hatasız geçiyor mu? | 89 | 2 | Oluşturulan dokümantasyonda "Try it out" çalışıyor mu? | 90 | 3 | Tüm zorunlu alanlar (`required`) şemada işaretli mi? |
vuralserhat86/antigravity-agentic-skills/tree/main/skills/docs_api commit 91a3d93737
Frequently asked questions How do I install the Docs API skill? Run npx skillmds@latest add vuralserhat86/docs-api in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Docs API skill do? 🌐 Docs API It is listed under Integrations & APIs on SkillMD.
Is Docs API safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Docs API? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Docs API free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Docs API? vuralserhat86 (@vuralserhat86) published this skill. Their other Agent Skills are listed on their SkillMD profile.