Obter o estado do serviço
RegistosGET /status
Answers {"status":"ok"} while the server is up, for apps that show whether they can reach it (the desktop app's online state). It reports nothing about dependencies or the version: the health and readiness probes (/livez, /readyz, /healthz) are served on the internal metrics listener only.
Devolve
200 The server is up
Mostrar atributos
statusum de
ok
curl -X GET "$PUBLIC_API/status"
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$PUBLIC_API/status", {
method: "GET"
});
const data = await res.json();
import requests
res = requests.get(
"$PUBLIC_API/status"
)
data = res.json()
req, _ := http.NewRequest("GET", "$PUBLIC_API/status", nil)
resp, err := http.DefaultClient.Do(req)
Resposta 200
{
"status": "ok"
}