Dependency readiness probe
curl --request GET \
--url https://api.tahsil.dev/readyconst options = {method: 'GET'};
fetch('https://api.tahsil.dev/ready', 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/ready",
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": true
}{
"status": false,
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "Authentication is required"
}
}Dependency readiness probe
GET
/
ready
Dependency readiness probe
curl --request GET \
--url https://api.tahsil.dev/readyconst options = {method: 'GET'};
fetch('https://api.tahsil.dev/ready', 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/ready",
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": true
}{
"status": false,
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "Authentication is required"
}
}İlgili konular
Process liveness probeBu sayfa yararlı mıydı?
⌘I