路由改变
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 工程开发
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# FastAPI Route Change
Follow `AGENTS.md` first.
## Workflow
1. Inspect existing route modules under `genereview_link/api/routes/` and
reuse their pattern (router declaration, dependency injection, error
handling, response_model).
2. Use Pydantic models from `genereview_link/models/` for request and
response shapes. Add new models there if needed.
3. Raise `DataNotFoundError` from the service layer (genereview_service.py)
for 404 cases; let the existing exception handler convert it to HTTP 404.
4. Update or add MCP tool naming in `server_manager.create_mcp_server`'s
`mcp_custom_names` and `mcp_route_maps` if the route should be exposed
via MCP.
5. Add route-level tests in `tests/test_api_integration.py` and unit tests
for any new service logic in the appropriate test file.
6. Update `README.md` API table if the public endpoint list changed.
7. Run `make ci-local` before handoff.
---
> Source: [berntpopp/genereviews-link](https://github.com/berntpopp/genereviews-link) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
工作流程
文件/命令 -> AGENTS.md · genereview_link/api/routes/ · genereview_link/models/ · DataNotFoundError · server_manager.create_mcp_server · mcp_custom_names · mcp_route_maps · tests/test_api_integration.py
内容校验值 -> 0301dc0503e9
当前原文的自动摘译,尚未人工审校。
工作流程
检查
genereview_link/api/routes/下的现有路由模块并重用它们的模式(路由器声明、依赖项注入、错误处理、response_model)。使用genereview_link/models/中的 Pydantic 模型来表示请求和响应形状。如果需要,可以在其中添加新模型。