Defines an API request.
constructFormdata() Constructs a FormData instance from an object.
the object to generate the FormData from
PUT /api/devices/
- Promises to create a device
The universally unique identifier of the device
The name of the device
delete() DELETE request
DELETE /api/devices/:uuid/
- Promise to delete a device
The universally unique identifier of the device
DELETE /api/devices/
- Promises to delete the devices
generateHeaders() A function used to generate the headers that need to be passed to the request performee.
get() GET request
GET /api/devices/uuid/
- Promises to get a device based on its UUID
The universally unique identifier of the device
GET /api/devices/
- Promises to retrieve an array of devices
patch() PATCH request
Request body
patchFormdata() PATCH request (multipart/form-data, application/x-www-form-urlencoded)
post() POST request
Request body
postFormdata() POST request (multipart/form-data, application/x-www-form-urlencoded)
put() PUT request
Request body
putFormdata() PUT request (multipart/form-data, application/x-www-form-urlencoded)
PATCH /api/devices/:uuid/
- Promises to update a device
The universally unique identifier of the device
The name of the device
Generated using TypeDoc
public DevicesAPI - Provides methods to interact with the Devices API