Add a REST endpoint + OpenAPI docs to an existing FastAPI app
In an existing FastAPI codebase, Claude Code adds a new `/reports/summary` GET endpoint: it reads the router pattern, creates the Pydantic schema, wires the database query, writes the route, adds tests, and updates the OpenAPI description — touching five files consistently.
The endpoint is live and tested within 20 minutes, and the generated OpenAPI spec is correct on the first try.
Run `claude` in the project root: "Add a GET /reports/summary endpoint to the FastAPI app. Follow the pattern in app/routers/projects.py. Return aggregated row counts grouped by status. Add tests in tests/routers/."