{"action":"created","issue":{"url":"https://api.github.com/repos/mgonto/restangular/issues/699","labels_url":"https://api.github.com/repos/mgonto/restangular/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/mgonto/restangular/issues/699/comments","events_url":"https://api.github.com/repos/mgonto/restangular/issues/699/events","html_url":"https://github.com/mgonto/restangular/issues/699","id":32896713,"number":699,"title":"Decoupled Restangular Service problem","user":{"login":"kevinrenskers","id":229384,"avatar_url":"https://avatars.githubusercontent.com/u/229384?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinrenskers","html_url":"https://github.com/kevinrenskers","followers_url":"https://api.github.com/users/kevinrenskers/followers","following_url":"https://api.github.com/users/kevinrenskers/following{/other_user}","gists_url":"https://api.github.com/users/kevinrenskers/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinrenskers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinrenskers/subscriptions","organizations_url":"https://api.github.com/users/kevinrenskers/orgs","repos_url":"https://api.github.com/users/kevinrenskers/repos","events_url":"https://api.github.com/users/kevinrenskers/events{/privacy}","received_events_url":"https://api.github.com/users/kevinrenskers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgonto/restangular/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-05-06T14:21:09Z","updated_at":"2015-02-26T14:01:10Z","closed_at":null,"body":"```\r\nmodule.factory('Users', function() {\r\n  return Restangular.service('users');\r\n});\r\n\r\n// In your controller you inject Users\r\nUsers.one(2).get() // GET to /users/1\r\nUsers.post({data}) // POST to /users\r\n```\r\n\r\nThis all works fine, but what about `Users.all('cars').getList()` to do a GET to /users/cars? The `.all` method isn't available on `Users`."},"comment":{"url":"https://api.github.com/repos/mgonto/restangular/issues/comments/76182148","html_url":"https://github.com/mgonto/restangular/issues/699#issuecomment-76182148","issue_url":"https://api.github.com/repos/mgonto/restangular/issues/699","id":76182148,"user":{"login":"kevinrenskers","id":229384,"avatar_url":"https://avatars.githubusercontent.com/u/229384?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinrenskers","html_url":"https://github.com/kevinrenskers","followers_url":"https://api.github.com/users/kevinrenskers/followers","following_url":"https://api.github.com/users/kevinrenskers/following{/other_user}","gists_url":"https://api.github.com/users/kevinrenskers/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinrenskers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinrenskers/subscriptions","organizations_url":"https://api.github.com/users/kevinrenskers/orgs","repos_url":"https://api.github.com/users/kevinrenskers/repos","events_url":"https://api.github.com/users/kevinrenskers/events{/privacy}","received_events_url":"https://api.github.com/users/kevinrenskers/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T14:01:10Z","updated_at":"2015-02-26T14:01:10Z","body":"Not sure what you mean, the point is kinda that I don't want to make a new service. For example, I have this factory:\r\n\r\n```\r\nangular.module('sling.dashboard').factory('Announcements', function(Restangular) {\r\n    return Restangular.service('announcements');\r\n});\r\n```\r\n\r\nSo now I my code I can do `Announcements.getList()` just fine, but something like `Announcements.all('archive').getList()` is not possible.\r\n\r\nOf course I can create a new service like this:\r\n\r\n```\r\nangular.module('sling.dashboard').factory('AnnouncementsArchive', function(Restangular) {\r\n    return Restangular.service('announcements/archive');\r\n});\r\n```\r\n\r\nBut the whole point of my ticket is that the `.all()` method is not available so I'm forced to create extra services like this."}}