Process liveness probe
curl --request GET \
--url https://api.tahsil.dev/healthconst options = {method: 'GET'};
fetch('https://api.tahsil.dev/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tahsil.dev/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": true,
"result": {
"id": "64f000000000000000000001"
}
}{
"status": false,
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "Authentication is required"
}
}Process liveness probe
GET
/
health
Process liveness probe
curl --request GET \
--url https://api.tahsil.dev/healthconst options = {method: 'GET'};
fetch('https://api.tahsil.dev/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tahsil.dev/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": true,
"result": {
"id": "64f000000000000000000001"
}
}{
"status": false,
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "Authentication is required"
}
}İlgili konular
Dependency readiness probeBu sayfa yararlı mıydı?
⌘I