Ready
GET
/v1/ready
const url = 'https://example.com/v1/ready';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/readyWhether this server should get requests, for a readiness probe: its database answers,
with its migrations applied, and it isn’t draining before it stops (ROWLAB_DRAIN_SECONDS).
503 otherwise, with the reason as status.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Health
object
status
required
Status
string
version
required
Version
string
Example generated
{ "status": "example", "version": "example"}Not ready, and why.
Media typeapplication/json
Health
object
status
required
Status
string
version
required
Version
string
Example generated
{ "status": "example", "version": "example"}