access/networks

Methods

(async, inner) addNetworkDevice(req, res)

Source:
Adds an existing device as a device in the network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) createNetwork(req, res)

Source:
Creates a new network for the current user and sends a http request to the user with the newly created network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) deleteNetwork(req, res)

Source:
Deletes the network. Does not delete devices belonging to the network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getNetwork(req, res)

Source:
Gets a single network and returns it in the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getNetworkDevices(req, res)

Source:
Gets all the devices that belong to the specified network and returns them in the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getNetworks(req, res)

Source:
Retrieves all networks belonging to the requesting user and sends them in an http request response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) removeNetworkDevice(req, res)

Source:
Removes an existing device as a device in the network. This function does not do anything to the actual device object, it just disassociates it from the network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) updateNetworkPermissions(req, res) → {Promise.<void>}

Source:
Updates permissions to view and edit a network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.
Returns:
Type
Promise.<void>

Methods

(async, inner) addNetworkDevice(req, res)

Source:
Adds an existing device as a device in the network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) createNetwork(req, res)

Source:
Creates a new network for the current user and sends a http request to the user with the newly created network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) deleteNetwork(req, res)

Source:
Deletes the network. Does not delete devices belonging to the network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getNetwork(req, res)

Source:
Gets a single network and returns it in the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getNetworkDevices(req, res)

Source:
Gets all the devices that belong to the specified network and returns them in the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getNetworks(req, res)

Source:
Retrieves all networks belonging to the requesting user and sends them in an http request response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) removeNetworkDevice(req, res)

Source:
Removes an existing device as a device in the network. This function does not do anything to the actual device object, it just disassociates it from the network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) updateNetworkPermissions(req, res) → {Promise.<void>}

Source:
Updates permissions to view and edit a network.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.
Returns:
Type
Promise.<void>