Aller au contenu
Peal
Esc
↑↓naviguer↵ouvrir⌘Japerçu

Check that the server can take traffic

Answers once the server can reach its database, and fails with DatabaseUnavailable while it cannot. Use it as a readiness check before sending traffic.

GET/api/ready
Réponses
204

The server and its database both answer.

503

The server cannot reach its database.

_tagstringrequis
Valeurs autorisées :DatabaseUnavailable
codestring
messagestring
requestIdstring
Requête
curl -X GET 'https://api.example.com/api/ready' \
  -H 'Accept: application/json'
Réponse
The server and its database both answer.

Cette page vous a-t-elle été utile ?