41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
module.exports = class Endpoints {
|
|
static auth = {
|
|
url: ["http://localhost:8092/api/2.0/authentication.json"],
|
|
method: "POST",
|
|
baseDir: "auth",
|
|
};
|
|
static people = {
|
|
url: [
|
|
"http://localhost:8092/api/2.0/people/@self.json",
|
|
"http://localhost:8092/api/2.0/people/%40self.json",
|
|
],
|
|
method: "GET",
|
|
baseDir: "people",
|
|
};
|
|
static modules = {
|
|
url: ["http://localhost:8092/api/2.0/modules/info"],
|
|
method: "GET",
|
|
baseDir: "modules",
|
|
};
|
|
static build = {
|
|
url: ["http://localhost:8092/api/2.0/settings/version/build.json"],
|
|
method: "GET",
|
|
baseDir: "settings",
|
|
};
|
|
static settings = {
|
|
url: ["http://localhost:8092/api/2.0/settings.json"],
|
|
method: "GET",
|
|
baseDir: "settings",
|
|
};
|
|
static providers = {
|
|
url: ["http://localhost:8092/api/2.0/people/thirdparty/providers"],
|
|
method: "GET",
|
|
baseDir: "people",
|
|
};
|
|
static capabilities = {
|
|
url: ["http://localhost:8092/api/2.0/capabilities"],
|
|
method: "GET",
|
|
baseDir: "settings",
|
|
};
|
|
};
|