> send GET request with query params, or POST params in body:
> /api/collect/{deviceId}
> make it private by setting `password` param

> view data for device:
> /device/{deviceId}

> get device JSON data:
> /api/device/{deviceId}
> limit records (get last 10):
> /api/device/{deviceId}/10
> limit since ms timestamp (overrides count):
> /api/device/{deviceId}?since=1645222243788

> you have to be authenticated and authorized to get data of device with password set
> get token sending POST request with `{ id: deviceId, password: devicePassword }` body to:
> /api/token
> pass returned token to `authorization` request header:
> `authorization: Bearer {token}`
logout