curl --request GET \
--url https://sandbox.circularo.com/api/v1/pingimport requests
url = "https://sandbox.circularo.com/api/v1/ping"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/ping', 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://sandbox.circularo.com/api/v1/ping",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/ping"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/ping")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/ping")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": 503,
"type": "SYSTEM:STATE_UPDATE_IN_PROGRESS",
"message": "System update in progress",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Check that the service is answering
GET /ping
Answers as long as the service is running and the tenant the request belongs to can be served - the endpoint to point a monitoring probe, a connectivity test or a retry loop at. It authenticates nobody, reads nothing and changes nothing, and answers with pong.
An answer says that the web layer is up and that the tenant is not in the middle of a data update. It is not a health check of what sits behind it: the file storage and the worker services are never consulted, and the database only as far as it takes to work out which tenant the request belongs to. All of that can be broken while this still answers.
Which tenant is checked is worked out from a token sent along, from the tenant named in the request, or failing both from the address the request arrived on. Where none of them settles it, the check simply answers - it never fails for want of a tenant.
No authorization: No authorization is required to call this endpoint.
curl --request GET \
--url https://sandbox.circularo.com/api/v1/pingimport requests
url = "https://sandbox.circularo.com/api/v1/ping"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/ping', 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://sandbox.circularo.com/api/v1/ping",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/ping"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/ping")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/ping")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": 503,
"type": "SYSTEM:STATE_UPDATE_IN_PROGRESS",
"message": "System update in progress",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Response
The service is answering.