[backend]評価履歴を削除するDELETE APIを追加する

Open Beginner friendly
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
90/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Start with backend/app/routers/evaluations.py and compare the existing DELETE /companies/{company_id} implementation described in the API specification. Add the endpoint and extend backend/tests/test_evaluations.py for successful deletion and a missing ID returning 404. Update documents/backend/API仕様.md in sections 2 and 5, then run cd backend && uv run pytest tests/test_evaluations.py.

Written by the indexing model from the issue text.

Description

種別: 実装

種別: 実装 — コードを書き、「検証方法」で検証してから PR を出す。

目的

評価履歴一覧から不要な結果を削除できるようにするため、評価結果を削除する API を新設する。

完了条件

  • DELETE /evaluations/{evaluation_id} を追加する。成功時は 204(レスポンスボディなし)を返す
  • 指定した evaluation_id が存在しない場合は 404 を返す
  • API仕様 の API 一覧(2章)と面接・評価(5章)に、既存の DELETE /companies/{company_id} と同様の形式でエンドポイントを追記する
  • backend/tests/test_evaluations.py に、削除の成功・存在しないIDでの404を検証するテストを追加する

やらないこと

  • フロントエンドからの削除操作の実装([#後続Issue] で扱う)
  • 評価履歴一覧・詳細の取得 API(GET /evaluations 系)の変更

触る範囲

  • backend/app/routers/evaluations.py
  • backend/tests/test_evaluations.py
  • documents/backend/API仕様.md

検証方法

cd backend
uv run pytest tests/test_evaluations.py

前提・依存

  • 依存Issue: なし
  • 適用ADR: なし

参考

  • API仕様 4.1章 — 同型の DELETE /companies/{company_id} の実装例
Dominant language
HTML
Stars
1
Forks
0
Avg merge
1h 19m
Merged PRs (30d)
76

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from study-basic-hackathon/hanasu

All issues in study-basic-hackathon/hanasu

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.