(feature) Add staff-only service status API

Add /api/status/ for quick inspection of database backend, object counts, latest
backup run, and latest scheduler activity. Link it from the API index and reuse
schedule serialization between host summaries and status output.

Cover the endpoint with a focused API test and document the new status URL.
This commit is contained in:
2026-05-19 11:46:22 +02:00
parent ccd89119da
commit 2778a589ea
4 changed files with 88 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ from pobsync_backend import api
urlpatterns = [
path("api/", api.api_index),
path("api/status/", api.status),
path("api/hosts/", api.hosts),
path("api/snapshots/", api.snapshots),
path("api/runs/", api.runs),