feat(api): add /resume endpoint for queue processing
Add POST /api/queue/resume endpoint. Alias for start_queue that provides semantic clarity for resume action after pause/stop. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
### Task 10: Fix `Start Queue` API Test
|
||||
**Test Result:** FAIL — Expected status: 200, got 400 (`No pending downloads in queue`)
|
||||
**File:** `tests/robot/api/download.robot`
|
||||
**Instructions:**
|
||||
The test calls POST `/api/queue/start` without first adding items to the queue. The endpoint returns 400 because the queue is empty. Update the test to first add episodes to the queue (using `Add To Queue`) before calling `Start Queue`. Alternatively, modify the endpoint in `src/server/api/download.py` to return 200 with a message when the queue is empty instead of 400. The test expectation should be aligned with the API behavior.
|
||||
|
||||
---
|
||||
|
||||
### Task 11: Fix `Resume Queue` API Test
|
||||
**Test Result:** FAIL — Expected status: 200, got 405 (Method Not Allowed)
|
||||
**File:** `tests/robot/api/download.robot` and `src/server/api/download.py`
|
||||
|
||||
Reference in New Issue
Block a user