|
| 1 | +# RundownAPI Specification v0.1 |
| 2 | + |
| 3 | +Technical reference for implementing RundownAPI endpoints. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Required Fields |
| 8 | + |
| 9 | +| Field | Type | Description | |
| 10 | +|-------|------|-------------| |
| 11 | +| `rundown_version` | string | Spec version. Currently `"0.1"` | |
| 12 | +| `base_url` | string | API base URL | |
| 13 | +| `auth` | object | Authentication method and parameters | |
| 14 | +| `purpose` | string | What this API does, plain language, 1-2 sentences | |
| 15 | +| `endpoints` | array | Available endpoints with path, method, description, parameters | |
| 16 | +| `ai_instructions` | object or string | When to use, how to behave, what to avoid | |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## Recommended Fields |
| 21 | + |
| 22 | +| Field | Type | Description | |
| 23 | +|-------|------|-------------| |
| 24 | +| `examples` | array | Curl/fetch snippets ready to use | |
| 25 | +| `error_format` | object | What errors look like, common codes | |
| 26 | +| `capabilities` | array | Quick scope summary: `["read", "write", "search"]` | |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +## Optional Fields |
| 31 | + |
| 32 | +Any additional context useful for integration: rate limits, response schemas, MCP hints, versioning. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## ai_instructions Structure |
| 37 | + |
| 38 | +Can be a string (prose) or object: |
| 39 | +```json |
| 40 | +{ |
| 41 | + "triggers": ["when to use this API"], |
| 42 | + "behaviors": ["how to present results"], |
| 43 | + "constraints": ["what to never do"] |
| 44 | +} |
| 45 | +``` |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +## Auth Object |
| 50 | +```json |
| 51 | +{ |
| 52 | + "method": "token | bearer | api_key", |
| 53 | + "parameter": "param name for URL token", |
| 54 | + "header": "header format if supported", |
| 55 | + "note": "optional context" |
| 56 | +} |
| 57 | +``` |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +## Endpoint Object |
| 62 | +```json |
| 63 | +{ |
| 64 | + "path": "/api/resource", |
| 65 | + "method": "GET | POST | PUT | DELETE", |
| 66 | + "description": "what it does", |
| 67 | + "parameters": { "param": "description" } |
| 68 | +} |
| 69 | +``` |
| 70 | + |
| 71 | +--- |
| 72 | + |
| 73 | +## Reference |
| 74 | + |
| 75 | +- Full examples: [README.md](README.md) |
| 76 | +- Agent instructions: [AGENTS.md](AGENTS.md) |
| 77 | +- Working implementation: [github.com/threadbaire/server](https://github.com/threadbaire/server) |
0 commit comments