36 lines
904 B
JavaScript
36 lines
904 B
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',
|
||
|
};
|
||
|
};
|