feat(backend): add /api/v1/ping liveness endpoint #634
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#634
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/633-ping-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GET /api/v1/pingreturning{"pong": true}(noop liveness probe)ping.routerinmain.pyunder/api/v1/api/v1/pingto_PUBLIC_PATHSso it bypasses RBAC like/health(public liveness probe; monitoring has no Caddy creds)TestClientTest plan
ruff check+ruff format --checkon changed files -> pass (local, uv py3.12)GET /api/v1/ping-> 200{"pong": true}tests/test_ping.py(importsapp.main) -> runs in CI; not run locally (weasyprint/GTKlibgobject-2.0-0missing on Windows dev box, same as tests/test_rbac.py note)Closes #633
Noop liveness probe returning {"pong": true}. Registered as a public path (no Caddy/RBAC auth) like /health so external monitoring can reach it. Adds unit test via FastAPI TestClient. Closes #633Trivial liveness endpoint. Clean: new router registered, /api/v1/ping added to _PUBLIC_PATHS (auth bypass correct for liveness), test present, conventions match. No data exposure, vault anti-regression clean. APPROVE + merge.