{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1282","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1282/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1282/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1282/events","html_url":"https://github.com/rails-api/active_model_serializers/pull/1282","id":112420797,"number":1282,"title":"Add supports for :links and :data options to has_many associations for jsonapi adapter","user":{"login":"tchak","id":12428,"avatar_url":"https://avatars.githubusercontent.com/u/12428?v=3","gravatar_id":"","url":"https://api.github.com/users/tchak","html_url":"https://github.com/tchak","followers_url":"https://api.github.com/users/tchak/followers","following_url":"https://api.github.com/users/tchak/following{/other_user}","gists_url":"https://api.github.com/users/tchak/gists{/gist_id}","starred_url":"https://api.github.com/users/tchak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchak/subscriptions","organizations_url":"https://api.github.com/users/tchak/orgs","repos_url":"https://api.github.com/users/tchak/repos","events_url":"https://api.github.com/users/tchak/events{/privacy}","received_events_url":"https://api.github.com/users/tchak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails-api/active_model_serializers/labels/Hold","name":"Hold","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-20T17:36:04Z","updated_at":"2015-10-20T21:02:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1282","html_url":"https://github.com/rails-api/active_model_serializers/pull/1282","diff_url":"https://github.com/rails-api/active_model_serializers/pull/1282.diff","patch_url":"https://github.com/rails-api/active_model_serializers/pull/1282.patch"},"body":"This is a rebase from #1028\r\n\r\nI hope @lsylvester don't mind :)\r\n\r\nI also added more test including the one requested by @joaomdmoura with `links` + `data`. I also added support for passing in a hash of urls or proc in order to be able to provide custom links.\r\n\r\nI hope we can move forward from here."},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/149702150","html_url":"https://github.com/rails-api/active_model_serializers/pull/1282#issuecomment-149702150","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1282","id":149702150,"user":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T21:02:29Z","updated_at":"2015-10-20T21:02:29Z","body":"Yup, @tchak is right. We have basically 3 options here:\r\n + support uri templates\r\n + support lambdas/procs\r\n + define links inside blocks (which is basically the same as the previous option)"}}