Methods
static
create(createData) → {Promise.<SiteModel>}
Create a Site [POST /sites]
Parameters
-
createData
SiteController.CreateDataThe Site Create Data
Returns
-
Promise.<SiteModel>
Source
static
delete(id) → {Promise.<boolean>}
Delete a Site [DELETE /sites/{id}]
Parameters
-
id
numberThe Site ID
Returns
-
Promise.<boolean>
Source
static
getAll(queryParametersopt) → {Promise.<Array.<SiteModel>>}
List all Sites [GET /sites]
Parameters
-
queryParameters
SiteController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<SiteModel>>
Source
static
getOne(id) → {Promise.<SiteModel>}
Retrieve a Site [GET /sites/{id}]
Parameters
-
id
numberThe Site ID
Returns
-
Promise.<SiteModel>
Source
static
update(id, updateData) → {Promise.<SiteModel>}
Update a Site [PATCH /sites/{id}]
Parameters
-
id
numberThe Site ID
-
updateData
SiteController.UpdateDataThe Site Update Data
Returns
-
Promise.<SiteModel>
Source
Type Definitions
CreateData
The Create Data for a Site
Type
-
Object
Properties
-
name
stringThe Site Name
-
companyId
stringThe Company this Site belongs to
-
enabled
boolean<optional>
Whether the Site is Enabled
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
name
string<optional>
The Site Name
-
companyId
string<optional>
The Company this Site belongs to
-
enabled
boolean<optional>
Whether the Site is Enabled
Source
UpdateData
The Update Data for a Site
Type
-
Object
Properties
-
name
string<optional>
The Site Name
-
companyId
string<optional>
The Company this Site belongs to
-
enabled
boolean<optional>
Whether the Site is Enabled