API Reference Documentation

API Reference Documentation

Creates API reference documentation with OpenAPI specs, endpoint descriptions, authentication, examples and rate limits for REST and GraphQL APIs.

Skill files5 files

references/

scripts/

templates/

SKILL.md101 lines
1
---
2
name: api-reference-documentation
3
description: >
4
Create comprehensive API reference documentation with OpenAPI/Swagger specs,
5
REST endpoints, authentication, examples, and SDKs. Use when documenting REST
6
APIs, GraphQL APIs, endpoint documentation, or OpenAPI specifications.
7
---
8
9
# API Reference Documentation
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Generate professional API documentation that developers can use to integrate with your API, including endpoint specifications, authentication, request/response examples, and interactive documentation.
22
23
## When to Use
24
25
- Documenting REST APIs
26
- Creating OpenAPI/Swagger specifications
27
- GraphQL API documentation
28
- SDK and client library docs
29
- API authentication guides
30
- Rate limiting documentation
31
- Webhook documentation
32
- API versioning guides
33
34
## Quick Start
35
36
Minimal working example:
37
38
```yaml
39
openapi: 3.0.3
40
info:
41
title: E-Commerce API
42
description: |
43
Complete API for managing e-commerce operations including products,
44
orders, customers, and payments.
45
46
## Authentication
47
All endpoints require Bearer token authentication. Include your API key
48
in the Authorization header: `Authorization: Bearer YOUR_API_KEY`
49
50
## Rate Limiting
51
- 1000 requests per hour for authenticated users
52
- 100 requests per hour for unauthenticated requests
53
54
## Pagination
55
List endpoints return paginated results with `page` and `limit` parameters.
56
version: 2.0.0
57
contact:
58
name: API Support
59
email: api@example.com
60
url: https://example.com/support
61
license:
62
name: MIT
63
url: https://opensource.org/licenses/MIT
64
// ... (see reference guides for full implementation)
65
```
66
67
## Reference Guides
68
69
Detailed implementations in the `references/` directory:
70
71
| Guide | Contents |
72
|---|---|
73
| [OpenAPI Specification Example](references/openapi-specification-example.md) | openapi: 3.0.3 |
74
| [List Products](references/list-products.md) | List Products |
75
76
## Best Practices
77
78
### ✅ DO
79
80
- Use OpenAPI 3.0+ specification
81
- Include request/response examples for every endpoint
82
- Document all query parameters and headers
83
- Provide authentication examples
84
- Include error response formats
85
- Document rate limits and pagination
86
- Use consistent naming conventions
87
- Include SDK examples in multiple languages
88
- Document webhook payloads
89
- Provide interactive API explorer (Swagger UI)
90
- Version your API documentation
91
- Include migration guides for breaking changes
92
93
### ❌ DON'T
94
95
- Skip error response documentation
96
- Forget to document authentication
97
- Use inconsistent terminology
98
- Leave endpoints undocumented
99
- Ignore deprecation notices
100
- Skip versioning information
101

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…