Get SAYMON Version Hash
Returns a full hash of a Git commit from which this version was built.
Note
This request doesn't require authentication.
Request
HTTP Request
Request body
Request body is empty.
Response
Response body contains the string with the commit hash of the SAYMON version installed on the server.
Example
Request
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();