{"action":"created","issue":{"url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/60","repository_url":"https://api.github.com/repos/LuvDaSun/angular-hal","labels_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/60/comments","events_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/60/events","html_url":"https://github.com/LuvDaSun/angular-hal/issues/60","id":161191554,"number":60,"title":"Support for HAL Hypertext Cache Pattern","user":{"login":"nlenoire","id":14158698,"avatar_url":"https://avatars.githubusercontent.com/u/14158698?v=3","gravatar_id":"","url":"https://api.github.com/users/nlenoire","html_url":"https://github.com/nlenoire","followers_url":"https://api.github.com/users/nlenoire/followers","following_url":"https://api.github.com/users/nlenoire/following{/other_user}","gists_url":"https://api.github.com/users/nlenoire/gists{/gist_id}","starred_url":"https://api.github.com/users/nlenoire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlenoire/subscriptions","organizations_url":"https://api.github.com/users/nlenoire/orgs","repos_url":"https://api.github.com/users/nlenoire/repos","events_url":"https://api.github.com/users/nlenoire/events{/privacy}","received_events_url":"https://api.github.com/users/nlenoire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-20T13:11:50Z","updated_at":"2016-06-20T13:40:58Z","closed_at":null,"body":"Hello,\r\n\r\nI'm currently using an old version of angular-hal (0.1.5) in my project, but I plan to upgrade to new version soon.\r\nHowever, it looks to me that if the old version of angular-hal was well supporting the Hypertext cache patter (see section 8.3 of the HAL specification), that is not the case of the new version as far as I understood new source code (sorry, I didn't yet take the time to write a test for this).\r\n\r\nTypically, I have this kind of representation:\r\n```\r\n{\r\n   \"_link\": {\r\n      \"self\": {\r\n         href: \"http://my/rest/api\"\r\n     },\r\n     \"item\": {\r\n        \"href\": \"http://my/rest/api/{itemId},\r\n        \"templated\": true\r\n     }\r\n   },\r\n   \"_embedded\": { \r\n      \"item\": [\r\n      {\r\n         \"_links\": {\r\n            \"self\": {\r\n               \"href\": \"http://my/rest/api/item-001\"\r\n            },\r\n            \"itemId\": \"item-001\"\r\n         } \r\n      },\r\n      {\r\n         \"_links\": {\r\n            \"self\": {\r\n               \"href\": \"http://my/rest/api/item-002\"\r\n            },\r\n            \"itemId\": \"item-002\"\r\n      }]\r\n   }\r\n}\r\n```\r\nIf I far as I can understand, if I call `resource.$request().$get('item', {itemId: 'item-003'}, {})`, I will not obtain the resource representation of item-003, but the list of all embedded items, related by the rel 'item' from the root resource.\r\n\r\nCould you please let me know if my assumption is wrong?\r\n\r\nThanks,\r\n-NL \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/comments/227144865","html_url":"https://github.com/LuvDaSun/angular-hal/issues/60#issuecomment-227144865","issue_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/60","id":227144865,"user":{"login":"nlenoire","id":14158698,"avatar_url":"https://avatars.githubusercontent.com/u/14158698?v=3","gravatar_id":"","url":"https://api.github.com/users/nlenoire","html_url":"https://github.com/nlenoire","followers_url":"https://api.github.com/users/nlenoire/followers","following_url":"https://api.github.com/users/nlenoire/following{/other_user}","gists_url":"https://api.github.com/users/nlenoire/gists{/gist_id}","starred_url":"https://api.github.com/users/nlenoire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlenoire/subscriptions","organizations_url":"https://api.github.com/users/nlenoire/orgs","repos_url":"https://api.github.com/users/nlenoire/repos","events_url":"https://api.github.com/users/nlenoire/events{/privacy}","received_events_url":"https://api.github.com/users/nlenoire/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T13:40:58Z","updated_at":"2016-06-20T13:40:58Z","body":"I think we reached to the same conclusion.\r\n"}}
{"actor":{"display_login":"nlenoire"}}