Health endpoint GET /_/health for readiness checks
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 70/100
Direzione di ricerca
The health endpoint needs to be added to the routing in routing/all.php. Start by examining the existing API routes and the access control configuration. Implement a controller or handler that performs a dummy database select and returns the appropriate JSON response with the correct HTTP status codes and cache headers. Test the endpoint to ensure it works without authentication and is excluded from caching.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Source: components-web-app/api-components-bundle#312 (PR #315)
GET /_api/_/health (the /_/health route under the application's API prefix):
200 {"status":"ok"}after a dummy select on the default database connection;503 {"status":"unavailable","reason":"database"}otherwise.- Never cached (
Cache-Control: no-store), no surrogate keys, no session; cheap enough to probe every few seconds. Use it for Docker/compose healthchecks and Kubernetes readiness probes, and exclude it from Souin's cache. - Imported through
routing/all.php. An application whoseaccess_controlrequires login for every GET must allow it:{ path: ^/_api/_/health, roles: PUBLIC_ACCESS }. - Only the database is checked; optional services (Mercure, the cache) don't fail it.
- Lingua principale
- Vue
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di components-web-app/docs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
components-web-app/docs#92 ·
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
components-web-app/docs#91 ·
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
components-web-app/docs#88 ·
-
documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
components-web-app/docs#90 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
components-web-app/docs#1 · 2 commenti ·
Tutte le issue di components-web-app/docs
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area/profiles comp/cli comp/dashboard P2 sweeper:risk-session-state type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#122365 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vllm-project/production-stack#1105 ·
-
bug priority:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
CyberAgent/psd2svg#430 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100