GET /v1/health, for Principals with the health Scope, reports the db check (SELECT 1 through the app pool) and the schema check (at the expected Alembic head). Any failure returns down with 503. Bodies carry only check names and ok/fail.
Acceptance criteria
Healthy returns ok with 200
A schema behind head returns down with 503
Without the health Scope, 403
Part of #73 (spec: #72)
## What to build
`GET /v1/health`, for Principals with the `health` Scope, reports the `db` check (`SELECT 1` through the app pool) and the `schema` check (at the expected Alembic head). Any failure returns `down` with `503`. Bodies carry only check names and `ok`/`fail`.
## Acceptance criteria
- [ ] Healthy returns `ok` with `200`
- [ ] A schema behind head returns `down` with `503`
- [ ] Without the `health` Scope, `403`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #73 (spec: #72)
What to build
GET /v1/health, for Principals with thehealthScope, reports thedbcheck (SELECT 1through the app pool) and theschemacheck (at the expected Alembic head). Any failure returnsdownwith503. Bodies carry only check names andok/fail.Acceptance criteria
okwith200downwith503healthScope,403