api: reads use POST and deletes take ids in the request body
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- express, javascript, mongodb, react
调研方向
Start by locating the existing course detail and delete routes, then find the UI calls that use them. Check how the section and subsection delete routes pass IDs and how the project tests its API. Done means the new RESTful routes are used by the UI, the old routes are marked deprecated with a date, and coverage verifies the new behavior.
由索引模型根据 Issue 内容生成。
描述
Several routes do not follow HTTP semantics:
POST /api/v1/course/getCourseDetailsandPOST /getFullCourseDetailsread data with POST, so the responses cannot be cached or linked to.DELETE /api/v1/course/deleteCourseand the section/subsection delete routes take the id from the request body (some proxies and clients drop DELETE bodies).
Suggested fix: add RESTful routes such as GET /api/v1/courses/:courseId and DELETE /api/v1/courses/:courseId next to the existing ones, move the UI to them, mark the old routes deprecated (a Deprecation header and a date), and remove them later.
Found while reviewing StudyNotion with Claude Code.
- 主要语言
- JavaScript
- 星标
- 23
- 派生
- 8
- 平均合并
- 11 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
khemssharma/StudyNotion 的其他 Issue
-
docs: README is missing the sections its introduction promises; outdated clone URL and Node version未关闭documentation
难度 2/5 1-3 小时 新手友好度 72/100
khemssharma/StudyNotion#55 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
khemssharma/StudyNotion#59 ·
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
khemssharma/StudyNotion#57 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 45/100
khemssharma/StudyNotion#56 ·
-
documentation
难度 4/5 3-5 天 新手友好度 48/100
khemssharma/StudyNotion#54 ·
查看 khemssharma/StudyNotion 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 63/100
anothaDev/luci-theme-vantage#143 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
kingcharleslzy-ai/dsh-purge#282 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
-
a-corriger bug
难度 2/5 1-3 小时 新手友好度 86/100
christian-raj/S-Aloha#340 ·
-
area:image documentation good first issue
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复