Readiness probe (checks the database)
GET
/readyz
const url = 'http://localhost:8080/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 http://localhost:8080/readyzResponses
Section titled “Responses”Ready to serve traffic.
Media typeapplication/json
object
status
required
string
Example
{ "status": "ok"}An error, as RFC 9457 problem details.
Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
string
Example
{ "type": "about:blank"}