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

API responses are getting muddy

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
api

調査の方向性

この issue では、ファイル、エントリポイント、テストが指定されていません。まず API リクエストハンドラーとレスポンスの構築箇所を特定し、次に既存のレスポンス形式と後方互換性の要件を文書化します。完了とは、提案された形式をカバーするレスポンス選択設計について合意されていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

We need to consider better requests to offer the cleaner responses. We've made some compromises for backward compatibility but not in a generic way. It may be good to find that way. One option would be something like ?responseContainer=new_obj on the request so that we can default to returning the updated document or an array of them or put them inside { queryResults: [ results ] } if the consuming application needs/prefers them that way.

This would mean we would only have to modify old requests to add the parameter and we would be accommodating future requests like metadata if someone wants back the original query, count of results, time to find, most recent, ordering, etc.

主要言語
JavaScript
スター
3
フォーク
6
平均マージ
14分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

CenterForDigitalHumanities/rerum_server_nodejs のほかの issue

CenterForDigitalHumanities/rerum_server_nodejs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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