Express router for tablet app related routes
Methods
(static) delete/fabcut/cutting/registrations/:deviceId() → {Boolean}
Route for unregistering a device from a specific location
Parameters:
| Name | Type | Description |
|---|---|---|
req.body.location |
String | The location of the device |
req.body.role |
String | The role associated with the device |
req.params.deviceId |
String | The device id |
Returns:
- Type
- Boolean
(static) get/fabcut/cutting/registrations/:deviceId() → {deviceRoleStatus}
Route for checking if a device is registered at a location and will return the role associated with the device if registered
Parameters:
| Name | Type | Description |
|---|---|---|
req.query.location |
String | The location of the android device |
req.params.deviceId |
String | The android device id of this specific device |
Returns:
The device role and status returned module:routers/v7/fabcut/cutting/registrations~deviceRoleStatus
- Type
- deviceRoleStatus
(static) post/fabcut/cutting/registrations/:deviceId() → {Boolean}
Route for registering a device as leader or follower
Parameters:
| Name | Type | Description |
|---|---|---|
req.body.location |
String | The location of the device |
req.params.deviceId |
String | The device id |
req.body.role |
String | The role |
req.body.tableNumber |
Number | The table number assigned to the follower device |
Returns:
- Type
- Boolean
Type Definitions
deviceRoleStatus
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
deviceRoleStatus.devRegStatus |
Boolean | The boolean status based on registration |
deviceRoleStatus.role |
String | The role of the device |