{"action":"created","issue":{"url":"https://api.github.com/repos/endpoints/endpoints/issues/9","labels_url":"https://api.github.com/repos/endpoints/endpoints/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/endpoints/endpoints/issues/9/comments","events_url":"https://api.github.com/repos/endpoints/endpoints/issues/9/events","html_url":"https://github.com/endpoints/endpoints/issues/9","id":56383833,"number":9,"title":"Support updating relationships by name instead of by foreign key","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-03T14:25:14Z","updated_at":"2015-02-03T14:56:18Z","closed_at":null,"body":"If I have a foregin key column on my model named `rel_foregin_key` but I want to refer to the relationship by the name `relName`. I should be able to perform PUT, and POST actions on the resouce without knowing `rel_foregin_key` and only using `relName`\r\n\r\nExample GET JSON\r\n\r\n```js\r\n{ applicants: {\r\n  {\r\n    \"id\": 40,\r\n    \"rel_foregin_key\": 8,\r\n    \"links\": {\r\n      \"relName\": {\r\n        \"type\": \"relationship\",\r\n        \"id\": 8,\r\n        \"href\": \"/relationship/10\"\r\n      },\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/endpoints/endpoints/issues/comments/72663983","html_url":"https://github.com/endpoints/endpoints/issues/9#issuecomment-72663983","issue_url":"https://api.github.com/repos/endpoints/endpoints/issues/9","id":72663983,"user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T14:56:18Z","updated_at":"2015-02-03T14:56:18Z","body":"I think it could. What does the spec say about to do when you don't know the values of a hasMany relationship? I'm thinking about a the case of an async relationship where you never fetch the relationship so the client never knows what was in the array to begin with."}}