{"action":"opened","issue":{"url":"https://api.github.com/repos/JakeGinnivan/WebApi.Hal/issues/146","repository_url":"https://api.github.com/repos/JakeGinnivan/WebApi.Hal","labels_url":"https://api.github.com/repos/JakeGinnivan/WebApi.Hal/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/JakeGinnivan/WebApi.Hal/issues/146/comments","events_url":"https://api.github.com/repos/JakeGinnivan/WebApi.Hal/issues/146/events","html_url":"https://github.com/JakeGinnivan/WebApi.Hal/issues/146","id":342194239,"node_id":"MDU6SXNzdWUzNDIxOTQyMzk=","number":146,"title":"Self link - limited to one","user":{"login":"romcoudray","id":11535029,"node_id":"MDQ6VXNlcjExNTM1MDI5","avatar_url":"https://avatars0.githubusercontent.com/u/11535029?v=4","gravatar_id":"","url":"https://api.github.com/users/romcoudray","html_url":"https://github.com/romcoudray","followers_url":"https://api.github.com/users/romcoudray/followers","following_url":"https://api.github.com/users/romcoudray/following{/other_user}","gists_url":"https://api.github.com/users/romcoudray/gists{/gist_id}","starred_url":"https://api.github.com/users/romcoudray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romcoudray/subscriptions","organizations_url":"https://api.github.com/users/romcoudray/orgs","repos_url":"https://api.github.com/users/romcoudray/repos","events_url":"https://api.github.com/users/romcoudray/events{/privacy}","received_events_url":"https://api.github.com/users/romcoudray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T06:32:29Z","updated_at":"2018-07-18T06:32:29Z","closed_at":null,"author_association":"NONE","body":"We have some cases where a resource can be reached by its Id or its Code.\r\nThe two following routes are then representing the self link:\r\napi/resource/{id}\r\napi/resource/{code}\r\n\r\nBut it's not possible to have two self links due to the ToLink method of the representation, wich performs a SingleOrDefault link statement to find the self link :\r\n\r\n`link = Links.SingleOrDefault(x => x.Rel == \"self\");`\r\n\r\nWould it be possible to use a FirstOrDefault statement instead and thus to allow the definition of 2 (or more) self links for a representation ?"}}
{"actor":{"display_login":"romcoudray"}}