Check health
curl --request GET \
--url https://api.useselo.xyz/healthconst options = {method: 'GET'};
fetch('https://api.useselo.xyz/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.useselo.xyz/health"
response = requests.get(url)
print(response.text){
"status": "ok"
}{
"error": "INTERNAL",
"message": "Internal server error"
}Endpoints
Check health
Liveness check. Returns 200 only when the API can query its database.
GET
/
health
Check health
curl --request GET \
--url https://api.useselo.xyz/healthconst options = {method: 'GET'};
fetch('https://api.useselo.xyz/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.useselo.xyz/health"
response = requests.get(url)
print(response.text){
"status": "ok"
}{
"error": "INTERNAL",
"message": "Internal server error"
}Response
The API and its database answer.
Allowed value:
"ok"