Endpoint to create Users
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
调研方向
issue 中没有指定文件、测试或路由入口点。首先定位现有的用户或 CRUD endpoint 模式,然后将它们的验证、中间件、错误响应和测试与所提供的请求结构进行比较。完成标准是覆盖 POST endpoint、必需的访问规则、验证、一致的错误,以及 happy-path 和失败测试。
由索引模型根据 Issue 内容生成。
描述
🛠️ Issue template for CRUD endpoints
📋 Endpoints Required
-
POST/api/v1/users— Create a new resource
🗂️ Data Schema
Describe or paste the expected request/response shape below.
Request Body
{
advocacyGroupId: number,
username: string,
email: string,
password: string,
firstName: string,
lastname: string,
active: boolean <optional, should default to false on record creation if it doesn't already>
}
✅ Acceptance Criteria
- All endpoints return correct HTTP status codes
- Input validation is applied to request bodies and query params
- Errors return consistent, descriptive JSON responses
- Endpoints are protected by appropriate auth/authorization middleware
- Pagination supported on the list endpoint
- Unit tests cover each endpoint (happy path + error cases)
- Integration tests pass in CI
- OpenAPI / Swagger docs updated
🔒 Auth & Permissions
🔗 Related
💬 Additional Context
- 主要语言
- HTML
- 星标
- 2
- 派生
- 11
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenSourceFellows/map_dashboard_hackathon 的其他 Issue
-
California Tribal GIS Hackathon Intermediate
难度 2/5 半天 新手友好度 68/100
-
California Tribal GIS Hackathon Intermediate
难度 3/5 1-2 天 新手友好度 68/100
-
Advanced California Tribal GIS Hackathon
难度 4/5 3-5 天 新手友好度 45/100
-
Advanced California Tribal GIS Hackathon
难度 3/5 1-2 天 新手友好度 48/100
-
California Tribal GIS Hackathon Intermediate
难度 4/5 3-5 天 新手友好度 45/100
查看 OpenSourceFellows/map_dashboard_hackathon 的全部 Issue
相似的 Issue
-
area: backend bug priority: low
难度 2/5 1-3 小时 新手友好度 78/100
snapotter-hq/SnapOtter#2254 ·
维护者通常 1 天内回复
-
[Chore] Remove dead AutogenV2 feature flag可能已有人在做 @geeknishantkyeus 今天认领。 未关闭bug triage
难度 2/5 1-3 小时 新手友好度 75/100
kyverno/kyverno#17936 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
Deepak3699/Ai_Mentor#244 ·
维护者通常 1 天内回复
-
enhancement model:sonnet phase-2-optimize runtime:claude security size:S
难度 2/5 1-3 小时 新手友好度 62/100
FootprintAI/Containarium#2416 ·
维护者通常 1 天内回复
-
bug ticket
难度 2/5 1-3 小时 新手友好度 72/100
cratestack/cratestack#1153 ·
维护者通常 1 天内回复