DocSpace-client/packages/login/tests/mocking/endpoints.js

41 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-12-21 07:59:11 +00:00
module.exports = class Endpoints {
static auth = {
2022-02-09 12:57:19 +00:00
url: ["http://localhost:8092/api/2.0/authentication.json"],
method: "POST",
baseDir: "auth",
2021-12-21 07:59:11 +00:00
};
static people = {
url: [
2022-02-09 12:57:19 +00:00
"http://localhost:8092/api/2.0/people/@self.json",
"http://localhost:8092/api/2.0/people/%40self.json",
2021-12-21 07:59:11 +00:00
],
2022-02-09 12:57:19 +00:00
method: "GET",
baseDir: "people",
2021-12-21 07:59:11 +00:00
};
static modules = {
2022-02-09 12:57:19 +00:00
url: ["http://localhost:8092/api/2.0/modules/info"],
method: "GET",
baseDir: "modules",
2021-12-21 07:59:11 +00:00
};
static build = {
2022-02-09 12:57:19 +00:00
url: ["http://localhost:8092/api/2.0/settings/version/build.json"],
method: "GET",
baseDir: "settings",
2021-12-21 07:59:11 +00:00
};
static settings = {
2022-02-09 12:57:19 +00:00
url: ["http://localhost:8092/api/2.0/settings.json"],
method: "GET",
baseDir: "settings",
2021-12-21 07:59:11 +00:00
};
static providers = {
2022-02-09 12:57:19 +00:00
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",
2021-12-21 07:59:11 +00:00
};
};