Get Versions
curl --request GET \
--url https://your-yahont-domain.com/api/versionsimport requests
url = "https://your-yahont-domain.com/api/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://your-yahont-domain.com/api/versions', 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://your-yahont-domain.com/api/versions",
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://your-yahont-domain.com/api/versions"
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://your-yahont-domain.com/api/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-yahont-domain.com/api/versions")
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{
"stable": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"dev": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"migration": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
}
}Разное
Получить теги последних версий приложения
Fetches the latest stable and beta versions of Onyx Docker images. Since DockerHub does not explicitly flag stable and beta images, this endpoint can be used to programmatically check for new images.
Get Versions
curl --request GET \
--url https://your-yahont-domain.com/api/versionsimport requests
url = "https://your-yahont-domain.com/api/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://your-yahont-domain.com/api/versions', 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://your-yahont-domain.com/api/versions",
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://your-yahont-domain.com/api/versions"
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://your-yahont-domain.com/api/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-yahont-domain.com/api/versions")
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{
"stable": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"dev": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"migration": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
}
}
