فحص الصحة
curl --request GET \
--url https://api.truthlocks.com/healthzconst options = {method: 'GET'};
fetch('https://api.truthlocks.com/healthz', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/healthz"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/healthz"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok"
}النظام
فحص الصحة
يعرض حالة صحة الخدمة. لا يلزم المصادقة.
GET
/
healthz
فحص الصحة
curl --request GET \
--url https://api.truthlocks.com/healthzconst options = {method: 'GET'};
fetch('https://api.truthlocks.com/healthz', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/healthz"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/healthz"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok"
}
