You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Rod Simpson (JIRA)" <ji...@apache.org> on 2014/01/28 02:12:37 UTC
[jira] [Created] (USERGRID-30) /collection/id/connected/* paths
should either return an entity, an empty set or a 404
Rod Simpson created USERGRID-30:
-----------------------------------
Summary: /collection/id/connected/* paths should either return an entity, an empty set or a 404
Key: USERGRID-30
URL: https://issues.apache.org/jira/browse/USERGRID-30
Project: Usergrid
Issue Type: Bug
Components: Stack
Reporter: Rod Simpson
"Not clear what that path is supposed to do but itÕs accepted, and always returns an empty set of results or an error
Examples:
curl http://api.usergrid.com/fdsafdsa/sandbox/users/tim/connected/followers
=> returns empty set despite follower relationships existing
curl http://api.usergrid.com/fdsafdsa/sandbox/users/tim/connected/users
=> returns empty set despite users being connected
curl http://api.usergrid.com/fdsafdsa/sandbox/users/tim/connected/d2740256-e312-11e1-ad17-12313d2b9232
=> returns an error despite an entity with that UUID being connected
1. Either we should accept a name or uuid at the end, and return that entity if it exists in the ÒconnectedÓ entities, or a 404 if it does not exist in the list of connected entities
2. Or we should accept a relationship identifier there and return all connected entities through that identifier, or an empty set if there are none
3. Or we should accept a collection name / type there and return all connected entities of that type, or an empty set if there are none
4. Or you should tell me what is supposed to be provided there so we can put that in our docs and SDKs :p"
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)