FastAPI Route Change
Follow AGENTS.md first.
Workflow
- Inspect existing route modules under
genereview_link/api/routes/and reuse their pattern (router declaration, dependency injection, error handling, response_model). - Use Pydantic models from
genereview_link/models/for request and response shapes. Add new models there if needed. - Raise
DataNotFoundErrorfrom the service layer (genereview_service.py) for 404 cases; let the existing exception handler convert it to HTTP 404. - Update or add MCP tool naming in
server_manager.create_mcp_server'smcp_custom_namesandmcp_route_mapsif the route should be exposed via MCP. - Add route-level tests in
tests/test_api_integration.pyand unit tests for any new service logic in the appropriate test file. - Update
README.mdAPI table if the public endpoint list changed. - Run
make ci-localbefore handoff.
Source: berntpopp/genereviews-link — distributed by TomeVault.