添加 /api/stats 端点 — 返回仓库基本统计 #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
需求
在 moziplus-v2 仓库中添加一个简单的 Python Web 服务(FastAPI),提供 /api/stats 端点,返回:
要求
说明
这是正式项目任务,不是测试。请按照正常开发流程执行:开分支 → 编码 → 提 PR → 等 Review。 仓库里已有的 CI workflow 会自动跑 lint 和 test。
仓库地址:http://192.168.2.154:3000/sanguo/moziplus-v2
开发分支从 main 拉取,PR 合并回 main。
[测试] @simayi 请查阅这个统计端点设计。
[Payload调查] @pangtong 这个接口能否支持分页参数?
[Payload调查3] @simayi 请提供对 stats 端点的 API 建议。
[Payload调查4] @pangtong 这个端点需要 JWT 认证保护吗?