octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
816 stars 181 forks source link

/devices/<uuid> endpoint returns Array #85

Closed sqrtofsaturn closed 9 years ago

sqrtofsaturn commented 9 years ago

Should return a single device.

Expected Return Value:

    {"uuid": "", "token": ""} 

Actual Return Value:

    {"devices": [{"uuid": "", "token": ""}] }
ra4king commented 9 years ago

This looks like it has been fixed with /v2/devices/:uuid https://github.com/octoblu/meshblu/blob/master/lib/setupHttpRoutes.js#L217

This issue is with /devices/:uuid https://github.com/octoblu/meshblu/blob/master/lib/setupHttpRoutes.js#L190

I don't think they want to break existing applications by changing older API... but considering we're still in beta, I don't see the point of /v2/devices/:uuid

iamruinous commented 9 years ago

all new behavior is being moved to versioned api endpoints to make integration easier and more reliable.