Module "lib/request-handlers/devices"
Functions
Const getDeviceById
getDeviceById( _request: Request < ParamsDictionary , any , any , ParsedQs > , response: Response < any > ) : Promise < void >
Parameters
_request: Request < ParamsDictionary , any , any , ParsedQs >
response: Response < any >
Returns Promise < void >
Const getDevices
getDevices( _request: Request < ParamsDictionary , any , any , ParsedQs > , response: Response < any > ) : Promise < void >
Parameters
_request: Request < ParamsDictionary , any , any , ParsedQs >
response: Response < any >
Returns Promise < void >
Const getDevicesFromProject
getDevicesFromProject( request: Request < ParamsDictionary , any , any , ParsedQs > , response: Response < any > ) : Promise < void >
Parameters
request: Request < ParamsDictionary , any , any , ParsedQs >
response: Response < any >
Returns Promise < void >
Const postDevice
postDevice( request: Request < ParamsDictionary , any , any , ParsedQs > , response: Response < any > ) : Promise < void >
Parameters
request: Request < ParamsDictionary , any , any , ParsedQs >
response: Response < any >
Returns Promise < void >
Legend
Object literal
Variable
Function
Function with type parameter
Type alias
specalized function to get device by its id. This function depends on lib/middlewares/deviceCheck to have been called and added the device to response.locals TODO: [DATAHUB-83] Test if response.locals.device really exists if not throw 500 internal error