Get SAYMON Version Hash
Returns a full hash of a Git commit from which this version was built.
This request doesn’t require authentication. |
Response
Response body contains the string with the commit hash of the SAYMON version installed on the server.
Example
Request
-
Bash
-
JavaScript
-
NodeJS
-
Python
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)