feature/ETQ admin, je veux un endpoint health check
Situation actuelle
Avoir un endpoint permettant de connaître le statut de SSHAM
- https://testfully.io/blog/api-health-check-monitoring/#what-is-an-api-health-check
- https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
- https://www.restapitutorial.com/httpstatuscodes.html
- https://idratherbewriting.com/learnapidoc/docapis_doc_status_codes.html#sample-status-code-in-curl-header
Actions
-
Créer le endpoint /health/ready
: The readiness endpoint, often available via /health/ready, returns the readiness state to accept incoming requests from the gateway or the upstream proxy. Readiness signals that the app is running normally but isn’t ready to receive requests just yet. -
Créer le endpoint /health/live
: The liveness endpoint, often available via /health/live, returns the liveness of a microservice. If the check does not return the expected response, it means that the process is unhealthy or dead and should be replaced as soon as possible. -
Créer le endpoint /health
: The generic health check endpoint, often available via /health, returns the status of the service and the dependencies.
Edited by HARRY Guillaume