curl --request GET \
--url https://haico.gr/api/versionimport requests
url = "https://haico.gr/api/version"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://haico.gr/api/version', 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://haico.gr/api/version",
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://haico.gr/api/version"
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://haico.gr/api/version")
.asString();require 'uri'
require 'net/http'
url = URI("https://haico.gr/api/version")
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{
"name": "<string>",
"version": "<string>",
"channel": "<string>",
"commit": "<string>",
"built_at": "<string>",
"api_contract": "<string>"
}Get Version
Report which release is running and which API contract it serves.
The build fields are stamped into the container image at release time, so
they identify the deployed artefact exactly; a build that was never stamped
reports 0.0.0-dev on the local channel. Unauthenticated so it can be
read from any deployment without a login.
curl --request GET \
--url https://haico.gr/api/versionimport requests
url = "https://haico.gr/api/version"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://haico.gr/api/version', 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://haico.gr/api/version",
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://haico.gr/api/version"
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://haico.gr/api/version")
.asString();require 'uri'
require 'net/http'
url = URI("https://haico.gr/api/version")
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{
"name": "<string>",
"version": "<string>",
"channel": "<string>",
"commit": "<string>",
"built_at": "<string>",
"api_contract": "<string>"
}Response
Successful Response
Build identity of the running backend, as reported by GET /api/version.
Service name.
Release version (X.Y.Z) baked into the image by CI; 0.0.0-dev for a local or unstamped build.
Release channel: prod, dev or local.
Git commit the image was built from; unknown if unstamped.
UTC ISO-8601 build timestamp; null if unstamped.
Version of the API contract this server implements (the OpenAPI document's info.version).