[MGNLREST-781] Implement Health check rest endpoint Created: 16/Jan/24  Updated: 01/Feb/24  Resolved: 01/Feb/24

Status: Resolved
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Task Priority: Neutral
Reporter: AntonĂ­n Juran Assignee: AntonĂ­n Juran
Resolution: Fixed Votes: 0
Labels: dx-core-6.3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
depends upon MAGNOLIA-9244 Align liveness & readiness with stand... Resolved
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes
Documentation update required:
Yes
Epic Link: 6.3 Consolidation
Work Started:

 Description   

By the MAGNOLIA-9244 has been introduced HealthCheckRegistry. Implement and register a health check REST endpoint responding to GET request on /.rest/health, /.rest/health/started, /.rest/health/live and /.rest/health/ready urls delegating to the HealthCheckRegistry.
The endpoint will respond with HTTP Status 200:
on /.rest/health if all registered HealthChecks in HealthCheckRegistry respond with status UP,
on /.rest/health/started if all registered Startup HealthChecks in HealthCheckRegistry respond with status UP,
on /.rest/health/live if all registered Liveness HealthChecks in HealthCheckRegistry respond with status UP,
on /.rest/health/ready if all registered ReadinessHealthChecks in HealthCheckRegistry respond with status UP, otherwise will respond with Status 503.


Generated at Mon Feb 12 07:03:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.