Get All Backend Extensions
Returns a list of all custom Backend Extensions.
Response
Response contains a list of all backend extensions. See the Backend Extensions model for more information.
Example
Request
-
Bash
-
JavaScript
-
NodeJS
-
Python
login=<...>
password=<...>
saymon_hostname=<...>
url=https://$saymon_hostname/node/api/extensions
curl -X GET $url -u $login:$password
let login = <...>
let password = <...>
let saymonHostname = <...>
let path = "/node/api/extensions";
let auth = "Basic " + btoa(login + ":" + password);
let headers = new Headers();
headers.append("Authorization", auth);
let requestOptions = {
method: "GET",
headers: headers
};
fetch(saymonHostname + path, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log("error", error));
const http = require("http");
let login = <...>
let password = <...>
let saymonHostname = <...>
let path = "/node/api/extensions/";
let auth = "Basic " + Buffer.from(login + ":" + password).toString("base64");
let options = {
"method": "GET",
"hostname": saymonHostname,
"headers": {
"Authorization": auth
},
"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
login = <...>
password = <...>
saymon_hostname = <...>
url = "https://" + saymon_hostname + "/node/api/extensions"
response = requests.request("GET", url, auth=(login, password))
print(response.text)
Response
[
{
"extensionName": "example-extension",
"uiUrl": "extensions/example-extension",
"apiUrl": "/api/extensions/example-extension",
"name": "SAYMON Example Extension",
"description": "Extension that is used in the REST API example",
"version": "v1.0.0-beta",
"date": "17.02.2023",
"homepage": "https://example.com/extensions/example-extension",
"author": "SAYMON Team",
"nameInUrl": "example-extension",
"urlToMeta": "https://example.com/extensions_meta/example-extension/meta.json"
},
...
]