Skip to content

Get SAYMON Version Hash

Returns a current SAYMON version hash.

Note

This request doesn't require authentication.

Request

HTTP Request

GET /node/api/version/hash

Path parameters

No parameters required.

Request body

The request body is empty.

Response

Response body contains the string with the hash of the SAYMON version installed on the server.

Example

Request

saymon_hostname=<...>
url=https://$saymon_hostname/node/api/version/hash

curl -X GET $url
let saymonHostname = <...>
let path = "/node/api/version/hash";

let requestOptions = {
    method: "GET"
};

fetch(saymonHostname + path, requestOptions)
    .then(response => response.text())
    .then(result => console.log(result))
    .catch(error => console.log("error", error));
const http = require("http");

let saymonHostname = <...>
let path = "/node/api/version/hash";

let options = {
    "method": "GET",
    "hostname": saymonHostname,
    "path": path
};

let req = http.request(options, function (res) {
    let chunks = [];

    res.on("data", function (chunk) {
        chunks.push(chunk);
    });

    res.on("end", function (chunk) {
        let body = Buffer.concat(chunks);
        console.log(body.toString());
    });

    res.on("error", function (error) {
        console.error(error);
    });
});

req.end();
import requests

saymon_hostname = <...>
url = "https://" + saymon_hostname + "/node/api/version/hash"

response = requests.request("GET", url)
print(response.text)

Response

"e5de76fc82d1f3a343a36a713ccce271a33e5579"