Add readiness endpoint to the dashboard API

オープン 初心者向け
#12 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
api

調査の方向性

dashboard_api/main.pyから始めて、既存のhealthエンドポイントがどのように定義され、セキュリティレポートにどのようにアクセスするかを確認してください。受け入れ基準に記載されたGET /api/readyの動作を追加し、その後、有効なレポート、欠落したレポート、無効なレポート、およびhealthの動作が維持されることを確認する自動テストを追加してください。準備状態が指定どおり200または503を返し、ファイルシステムの詳細を公開しなければ完了です。

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

説明

dashboard enhancement good first issue help wanted python

Problem

The existing health endpoint returns a successful response even when the security report is unavailable.

This makes it difficult to distinguish a running API from one that is ready to serve incident data.

Suggested Implementation

Introduce a separate readiness endpoint that checks whether the security report is available and readable.

Relevant File

dashboard_api/main.py

Acceptance Criteria

  • Add a GET /api/ready endpoint.
  • Return HTTP 200 when the report is available and valid.
  • Return HTTP 503 when the report is missing or invalid.
  • Preserve the existing health endpoint behavior.
  • Avoid exposing sensitive filesystem details.
  • Add automated tests.
主要言語
Python
スター
1
フォーク
3
平均マージ
47分
マージ済み PR(30日)
4

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

hrittijab/SecureOps のほかの issue

hrittijab/SecureOps の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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