✨ feat(server): add /api/healthz endpoint with rich health info #20
Reference in New Issue
Block a user
Delete Branch "feat/healthz-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
Ajoute un endpoint
/api/healthzstyle Kubernetes retournant un JSON enrichi avec status, version, uptime_seconds et timestamp.Non-breaking :
/api/healthexistant est préservé tel quel.Spec
Response :
Changes
pkg/server/server.go: route + handlerhandleHealthz+ structHealthzResponse+ champstartedAtsurServerpkg/server/healthz_test.go: test unitaire (assert HTTP 200 + Content-Type + JSON fields)features/health/health.feature: nouveau scénario BDD pour/api/healthzpkg/bdd/steps/health_steps.go,common_steps.go,steps.go: steps Gherkin associésTest plan
go build ./pkg/server/...passego test ./pkg/server/... -run TestHandleHealthzpasse localementgo test ./features/...(BDD) — nécessite Postgres, validé par CIMigration context
Phase 1 ARCODANGE — autonomous run de Mistral Vibe via workspace ICM :
~/Work/Vibe/workspaces/healthz-feature/Architecture ICM (Jake Van Clief) validée : ~95 % du travail effectué en autonomie par Mistral, avec stages observables sur disque.
🤖 Co-Authored-By: Mistral Vibe (devstral-2 / mistral-medium-3.5)