Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support content negotiation via `Accept` header

オープン
#3 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@francescobianco がすでに取り組んでいます。

2026年6月3日 から。

評価

この issue はまだ評価されていません。

説明

enhancement

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 Accept header values.
  • Add examples to the API documentation.
  • Clarify that application/json remains the default response format when no supported Accept header is provided.
主要言語
Rust
スター
19
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openapi/openapi-cli のほかの issue

openapi/openapi-cli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。