0xironclad / 0xironclad/Task-Scheduler-API

Implement PATCH /tasks/:id

オープン
#21 コメント 0 件 リアクション 0 件 担当者 1 名 @0xironclad が担当を希望しています GitHub で見る
api good first issue
主要言語
TypeScript
スター
0
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

Implement a partial update endpoint for tasks.

What to implement

Route: PATCH /tasks/:id

Allow updating (any subset
```
name
description
run_at
priority
max_retries
status (e.g. pending, canceled)
```

Validate:
```
id is a valid number
run_at is a valid future datetime (for rescheduling)
status is one of the allowed values
```

Return:
```
200 OK with the updated task on success
404 if the task does not exist
400 on invalid input
```

Expected result
Clients can reschedule tasks, tweak metadata, or cancel them without recreating the task.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Look for existing task routes in the codebase, likely in a routes or controllers directory. The PATCH endpoint needs to validate the input fields, update the task in the database, and return the updated task. Check the model or service layer for task update logic and validation. Ensure the response matches the specified status codes.

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

評価

技術スタック
express, node.js, postgresql, typescript
領域
api, backend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

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

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