Health-Check
GET
/v1/health
const url = 'https://example.com/v1/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/healthFür Load-Balancer/Docker-Healthcheck. Liefert 503, sobald kein Endpoint mehr healthy ist.
Responses
Abschnitt betitelt „Responses“Mindestens ein Endpoint healthy.
Media typeapplication/json
object
status
string
endpoints_total
integer
endpoints_healthy
integer
Example
{ "status": "ok"}Kein Endpoint healthy.
Media typeapplication/json
object
status
string
endpoints_total
integer
endpoints_healthy
integer
Example
{ "status": "ok"}