{"action":"created","issue":{"url":"https://api.github.com/repos/angular-resource-sails/angular-resource-sails/issues/26","labels_url":"https://api.github.com/repos/angular-resource-sails/angular-resource-sails/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/angular-resource-sails/angular-resource-sails/issues/26/comments","events_url":"https://api.github.com/repos/angular-resource-sails/angular-resource-sails/issues/26/events","html_url":"https://github.com/angular-resource-sails/angular-resource-sails/issues/26","id":100708552,"number":26,"title":"Unable to create a non static action using GET","user":{"login":"GuillaumeLeclerc","id":2017051,"avatar_url":"https://avatars.githubusercontent.com/u/2017051?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeLeclerc","html_url":"https://github.com/GuillaumeLeclerc","followers_url":"https://api.github.com/users/GuillaumeLeclerc/followers","following_url":"https://api.github.com/users/GuillaumeLeclerc/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeLeclerc/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeLeclerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeLeclerc/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeLeclerc/orgs","repos_url":"https://api.github.com/users/GuillaumeLeclerc/repos","events_url":"https://api.github.com/users/GuillaumeLeclerc/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeLeclerc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-13T07:44:37Z","updated_at":"2015-08-13T17:53:54Z","closed_at":null,"body":"Hello,\r\n\r\nI have a model `User` who have notifications. I created a User resource. The correct request to retrieve notifications using sails is : `/user/:id/notifications`. This is a GET request. I was expecting to do something like this : \r\n\r\n```javascript\r\nvar User = sailsResource(\"user\", ....);\r\nvar me = User.get({id : \"me\"});\r\nvar notifications = me.$notifications();\r\n```\r\nBut because the notification is a GET request ([see](https://github.com/angular-resource-sails/angular-resource-sails/blob/master/src/sailsResource.js#L174))  I have to do this (which I think is not the optimal way) :\r\n\r\n```javascript\r\nvar User = sailsResource(\"user\", ....);\r\nvar me = User.get({id : \"me\"});\r\nvar id = me.id;\r\nvar notifications = User.$notifications({id : id});\r\n```\r\nDo you think we could/should add an option (called `static` for example) instead of relying on the HTTP method ? \r\n\r\nThank you again for your very useful project !"},"comment":{"url":"https://api.github.com/repos/angular-resource-sails/angular-resource-sails/issues/comments/130779445","html_url":"https://github.com/angular-resource-sails/angular-resource-sails/issues/26#issuecomment-130779445","issue_url":"https://api.github.com/repos/angular-resource-sails/angular-resource-sails/issues/26","id":130779445,"user":{"login":"GuillaumeLeclerc","id":2017051,"avatar_url":"https://avatars.githubusercontent.com/u/2017051?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeLeclerc","html_url":"https://github.com/GuillaumeLeclerc","followers_url":"https://api.github.com/users/GuillaumeLeclerc/followers","following_url":"https://api.github.com/users/GuillaumeLeclerc/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeLeclerc/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeLeclerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeLeclerc/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeLeclerc/orgs","repos_url":"https://api.github.com/users/GuillaumeLeclerc/repos","events_url":"https://api.github.com/users/GuillaumeLeclerc/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeLeclerc/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T17:53:54Z","updated_at":"2015-08-13T17:53:54Z","body":"no because notification is a GET request and according to the code (see the link in my first message) the method should be added to the resource and not to the instances of that resource."}}