| name | design-api |
| description | Design API contracts before implementation — endpoints, models, status codes (Daniel Okoye's workflow) |
| disable-model-invocation | true |
Design the API contract for: $ARGUMENTS
Design BEFORE implementing. This produces a specification that /add-endpoint or /add-feature will implement.
Step 1 — Requirements
- What problem does this API solve?
- Who are the consumers? (frontend, mobile, external integrators, automation)
- What data flows in and out?
- What error conditions exist?
Step 2 — Endpoint Design
For each endpoint, define:
### `METHOD /api/<version>/<path>`
**Summary:** <one-line description>
**Auth:** Required / Public
**Request Body:**
```json
{
"field": "type — description (constraints)"
}
Response 200:
{
"field": "type — description"
}