balena-io-experimental / edge-node-manager

Resin uC edge-node-manager written in Go
Apache License 2.0
22 stars 6 forks source link

Improve device endpoints #190

Closed jbaldwinroberts closed 7 years ago

jbaldwinroberts commented 7 years ago

Change-type: minor

Added a GET /v1/devices endpoint that returns all dependent devices. Improved the GET /v1/device/{uuid} endpoint to enable requesting a device by either its local_id or resin_id

Connects to #188

jbaldwinroberts commented 7 years ago

@craig-mulligan , not sure if I understand the question? The state gets set to offline e.g. "Status":"Offline"

craigmulligan commented 7 years ago

Yeap that's what I was wondering. It just differs from the resin-api slightly in that we have device states set by the supervisor ('idle'/'updating') but also have a state set from the api based on the connectivity is_online so something can be both is_online: false and status: "Idle". So just wanted to clarify how this was handled in the enms case.