{"action":"created","issue":{"url":"https://api.github.com/repos/jcassee/angular-hypermedia/issues/19","labels_url":"https://api.github.com/repos/jcassee/angular-hypermedia/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jcassee/angular-hypermedia/issues/19/comments","events_url":"https://api.github.com/repos/jcassee/angular-hypermedia/issues/19/events","html_url":"https://github.com/jcassee/angular-hypermedia/pull/19","id":129158893,"number":19,"title":"Add optional parameters to $get","user":{"login":"furinvader","id":4266107,"avatar_url":"https://avatars.githubusercontent.com/u/4266107?v=3","gravatar_id":"","url":"https://api.github.com/users/furinvader","html_url":"https://github.com/furinvader","followers_url":"https://api.github.com/users/furinvader/followers","following_url":"https://api.github.com/users/furinvader/following{/other_user}","gists_url":"https://api.github.com/users/furinvader/gists{/gist_id}","starred_url":"https://api.github.com/users/furinvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furinvader/subscriptions","organizations_url":"https://api.github.com/users/furinvader/orgs","repos_url":"https://api.github.com/users/furinvader/repos","events_url":"https://api.github.com/users/furinvader/events{/privacy}","received_events_url":"https://api.github.com/users/furinvader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-27T14:26:11Z","updated_at":"2016-01-27T15:39:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jcassee/angular-hypermedia/pulls/19","html_url":"https://github.com/jcassee/angular-hypermedia/pull/19","diff_url":"https://github.com/jcassee/angular-hypermedia/pull/19.diff","patch_url":"https://github.com/jcassee/angular-hypermedia/pull/19.patch"},"body":"First of all, thank you very much for your hugely useful module.\r\n\r\nHere I have added optional parameters to `$get`.\r\nSo one could use `resource.$get({ param1: 'foobar', param2: 42 }).then(...)` to add additional URL parameters."},"comment":{"url":"https://api.github.com/repos/jcassee/angular-hypermedia/issues/comments/175693684","html_url":"https://github.com/jcassee/angular-hypermedia/pull/19#issuecomment-175693684","issue_url":"https://api.github.com/repos/jcassee/angular-hypermedia/issues/19","id":175693684,"user":{"login":"furinvader","id":4266107,"avatar_url":"https://avatars.githubusercontent.com/u/4266107?v=3","gravatar_id":"","url":"https://api.github.com/users/furinvader","html_url":"https://github.com/furinvader","followers_url":"https://api.github.com/users/furinvader/followers","following_url":"https://api.github.com/users/furinvader/following{/other_user}","gists_url":"https://api.github.com/users/furinvader/gists{/gist_id}","starred_url":"https://api.github.com/users/furinvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furinvader/subscriptions","organizations_url":"https://api.github.com/users/furinvader/orgs","repos_url":"https://api.github.com/users/furinvader/repos","events_url":"https://api.github.com/users/furinvader/events{/privacy}","received_events_url":"https://api.github.com/users/furinvader/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T15:39:55Z","updated_at":"2016-01-27T15:39:55Z","body":"Yes, your example puts it very well.\r\nI admit, that I am quite new to this API design as of yet and I didn't know about the templated relations.\r\n \r\nUsing your example, I would have to use the following code for it to work:\r\n```\r\nvar projects = new ResourceContext().get('http://example.com/projects');\r\nprojects.closedHref = 'http://example.com/projects{?closed}';\r\nvar closed = projects.$propRel('closedHref', {closed: true});\r\n...\r\n```"}}