feature request: Make GET channels/{target}/messages use request body instead of query parameters
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- openapi, typescript
调研方向
从链接的 Search for Messages 和 Fetch Messages API 定义开始,比较它们的请求参数和 body schema。追踪这些端点定义如何进入 TypeScript typings 和 OpenAPI v3 generator;完成的标准是两个端点都使用相同的 JSON request-body 结构,并且由此产生的 breaking client types 保持一致。
由索引模型根据 Issue 内容生成。
描述
What do you want to see?
At the moment, Search for Messages (POST channels/{target}/search) utilizes nearly identical parameters to Fetch Messages (GET channels/{target}/messages), but the former uses a JSON request body whereas the latter uses query parameters, which in my personal opinion is a worse way to build requests especially with as many parameters as the methods allow.
Would it be possible to make both endpoints use the same request body type (specifically a JSON request body instead of query parameters) for consistency? This would obviously be a breaking change for clients and API wrappers which depend on this functionality, but I think it would be better to get that over with sooner rather than later.
- 主要语言
- TypeScript
- 星标
- 42
- 派生
- 34
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stoatchat/javascript-client-api 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 35/100
stoatchat/javascript-client-api#34 · 1 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
stoatchat/javascript-client-api#29 · 1 个 reaction ·
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 35/100
stoatchat/javascript-client-api#18 · 2 条评论 · 4 个 reaction ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
stoatchat/javascript-client-api#16 · 2 条评论 · 8 个 reaction ·
查看 stoatchat/javascript-client-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 90/100
TanStack/tanstack.com#1293 ·