Hey

I was taking a look at the fxos-device-service to see if I could easily add
B2GDroid support and thought the method of requesting a command to apply to
a specific device was odd.

The API has the concept of `/devices` which will give you a collection of
the attached devices identified by their adb ids.  You can then get a
particular device by getting `/devices/:id`.

Following that, the other commands don't seem to relate to the adb device
id - and I *just* spotted: unless you use a header.

Wouldn't using the device ID in the URL give us more transparent URLs by
basing the URLs on the resources and related actions the consumer wants to
perform?

For example:

POST /devices/:id/restart
GET /devices/:id/logs
GET /devices/:id/properties
etc.

Sam
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to