What problem does it solve?
Adding or modifying REST endpoints in the Phoenix server requires following strict conventions for routing, models, auth, OpenAPI codegen, and integration test coverage, and missing any step causes CI failures.
Core Features & Use Cases
- Endpoint Design Rules: Enforces RFC-compliant HTTP methods, plural noun paths, cursor-based pagination, and self-describing snake_case field names.
- Codegen Workflow: Runs
make openapi to regenerate the OpenAPI schema plus Python and TypeScript client types, which must all be committed together.
- Testing Conventions: Directs integration test placement in
tests/integration/ and registration of endpoints in _helpers.py coverage lists.
- Use Case: When adding a new admin-only endpoint to
src/phoenix/server/api/routers/v1/, follow the checklist to implement the route, regenerate client types, and register it in _ADMIN_ONLY_ENDPOINTS before committing.
Quick Start
Ask the assistant to add a new v1 REST endpoint to the Phoenix server following the phoenix-rest-api conventions and checklist.