Methods
(static) delete/fabstitch/devices/:deviceId/registration() → {Boolean}
Route to unregister a input/output device
Parameters:
| Name | Type | Description |
|---|---|---|
req.params.deviceId |
String | The device id |
req.body.location |
String | The location of device |
Returns:
The unregister boolean status that is returned
- Type
- Boolean
(static) get/fabstitch/devices/:deviceId/registration() → {DeviceRegistrationObject}
Route to return the registration status of the device
Parameters:
| Name | Type | Description |
|---|---|---|
req.params.deviceId |
String | The device id |
req.query.location |
String | The location of the device |
Returns:
The object that is returned
- Type
- DeviceRegistrationObject
(static) post/fabstitch/devices/:deviceId/registration() → {Boolean}
Route to register a device for a batch in a location
Parameters:
| Name | Type | Description |
|---|---|---|
req.params.deviceId |
String | The device id |
req.body.batchNumber |
String | The batch number |
req.body.location |
String | The location of the device |
req.body.role |
deviceRoleEnum | The role of the device i.e, Input/Output/DHU |
Returns:
- Type
- Boolean
Type Definitions
DeviceRegistrationObject
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
deviceRegistrationStatus |
Boolean | |
role |
String | null | |
batchNumber |
String | null |