Support content negotiation via `Accept` header
@francescobianco 已经在做这个了。
开始于 2026年6月3日。
评估
这个 Issue 还没有评估数据。
描述
Description
The API already supports content negotiation through the Accept HTTP header, but this capability is currently undocumented.
When one of the following media types is specified, the default response format (application/json) is overridden and the output is returned accordingly:
| Accept Header | Output Format |
|---|---|
application/vnd.toon+text |
Toon |
text/markdown |
Markdown |
application/xml |
XML |
application/json |
JSON (default) |
Example
GET /api/resource
Accept: text/markdown
The response will be returned in Markdown format instead of JSON.
Proposed Action
- Document supported
Acceptheader values. - Add examples to the API documentation.
- Clarify that
application/jsonremains the default response format when no supportedAcceptheader is provided.
- 主要语言
- Rust
- 星标
- 19
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openapi/openapi-cli 的其他 Issue
-
enhancement good first issue help wanted
难度 4/5 3-5 天 新手友好度 45/100
openapi/openapi-cli#1 ·
查看 openapi/openapi-cli 的全部 Issue
相似的 Issue
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
docs(skills): issue-first should reference an existing Linear ticket instead of filing a duplicate未关闭documentation
难度 1/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
area: tui good first issue help wanted type: bug
难度 2/5 1-3 小时 新手友好度 72/100
srothgan/claude-code-rust#473 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
storytold/photocraft#5260 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复