Azure / Azure/data-api-builder
[Feature Request] Support modifying REST response codes and messages
- 主要言語
- C#
- スター
- 1.5k
- フォーク
- 370
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 9
説明
Per #1846, enable support for a scenario like this. For example, use stored procedure response metadata to supplement HTTP response.
> Where and how do I specify custom status_code and exception messages in DAB? For example, I have a stored proc to read data and I want to return status_code 404 if the data not found. And in writing scenario, if my stored proc detect validation error, I want to return status_code 500 (Internal Error; or maybe even more customised user friendly message).
コントリビューションガイド
調査の方向性
まず、この issue のシナリオと参照されている issue #1846 を読み、その後、Data API Builder がストアドプロシージャの結果を REST 応答にマッピングする方法を追跡します。ストアドプロシージャの応答メタデータが、読み取り操作と書き込み操作に対してカスタム HTTP ステータスコードとメッセージをどのように提供するかを定義し、未検出および検証エラーの場合の動作を確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100