Readiness probe
GET
/v1/readyz
const url = 'https://api.aerandil.com/v1/readyz';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://api.aerandil.com/v1/readyzReturns 200 when the process is ready to serve traffic — checks Postgres connectivity. 503 when a dependency is down.
Responses
Section titled “Responses”Service is ready.