api-generator · git:20260503.ca7e48f · 2026-05-03 · sha256 6b45d4019c1abf22

api-generator git:20260503.ca7e48fA

Immutable. This exact content never changes and is served at /api/v1/blob/6b45d4019c1abf22.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_i2rz5eet3uzcjnsn/6b45d4019c1abf22fe77f54ba977ff9c885624fe3ac918bbdeb4d760a495754a.json

Then /plugin install api-generator@markdownregistry-i2rz5eet3uzcjnsn in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: api-generator
description: Scaffold new REST endpoints or controllers for existing resources
---

## When to use

- New CRUD endpoints for a resource
- Greenfield resource scaffolding
- Adding query parameters or pagination to existing routes

## Steps

1. Read the [route checklist](references/route-checklist.md) for requirements.
2. Generate a controller from [template.ts](template.ts) for the resource name.
3. Wire the route into the router and update the OpenAPI document.

## Outputs

- Controller file under `src/controllers/`
- Test stub under `tests/controllers/`
- Updated OpenAPI document