Implement API so service (importarr) can be controlled via API instead of SSH to host #22

Open
opened 2026-07-29 13:48:50 +02:00 by daniels · 1 comment
Owner

should definately include an update and restart functionality #25

should definately include an update and restart functionality #25
daniels added the
prio
2
label 2026-07-29 14:12:26 +02:00
daniels referenced this issue from a commit 2026-07-29 20:11:29 +02:00
Author
Owner

Implementation update

Implemented API controls for issue #22 and pushed to main.

What changed

  • Added authenticated POST /api/control/update to run the configured repo-upgrade command.
  • Added authenticated POST /api/control/restart to run the configured restart command.
  • Added env-configurable command settings: IMPORTARR_UPDATE_COMMAND, IMPORTARR_RESTART_COMMAND, and IMPORTARR_CONTROL_COMMAND_TIMEOUT_SECONDS.
  • Commands run without a shell, capture bounded stdout/stderr, and report failures through API errors.
  • Documented the new API endpoints and updated local workflow notes to use the API for deployed update/restart after new code is pushed.

Verification

  • PYTHONWARNINGS=ignore .venv/bin/python -m pytest -q → 38 passed
  • git diff --check

Commit

  • 5752e9f Add API update controls #22
## Implementation update Implemented API controls for issue #22 and pushed to `main`. ## What changed - Added authenticated `POST /api/control/update` to run the configured repo-upgrade command. - Added authenticated `POST /api/control/restart` to run the configured restart command. - Added env-configurable command settings: `IMPORTARR_UPDATE_COMMAND`, `IMPORTARR_RESTART_COMMAND`, and `IMPORTARR_CONTROL_COMMAND_TIMEOUT_SECONDS`. - Commands run without a shell, capture bounded stdout/stderr, and report failures through API errors. - Documented the new API endpoints and updated local workflow notes to use the API for deployed update/restart after new code is pushed. ## Verification - `PYTHONWARNINGS=ignore .venv/bin/python -m pytest -q` → 38 passed - `git diff --check` ## Commit - `5752e9f Add API update controls #22`
daniels added the ready label 2026-07-29 20:11:54 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: daniels/importarr#22