{"action":"created","issue":{"url":"https://api.github.com/repos/neomerx/json-api/issues/55","labels_url":"https://api.github.com/repos/neomerx/json-api/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/neomerx/json-api/issues/55/comments","events_url":"https://api.github.com/repos/neomerx/json-api/issues/55/events","html_url":"https://github.com/neomerx/json-api/issues/55","id":98984652,"number":55,"title":"Encoding Relationships","user":{"login":"lindyhopchris","id":4464333,"avatar_url":"https://avatars.githubusercontent.com/u/4464333?v=3","gravatar_id":"","url":"https://api.github.com/users/lindyhopchris","html_url":"https://github.com/lindyhopchris","followers_url":"https://api.github.com/users/lindyhopchris/followers","following_url":"https://api.github.com/users/lindyhopchris/following{/other_user}","gists_url":"https://api.github.com/users/lindyhopchris/gists{/gist_id}","starred_url":"https://api.github.com/users/lindyhopchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindyhopchris/subscriptions","organizations_url":"https://api.github.com/users/lindyhopchris/orgs","repos_url":"https://api.github.com/users/lindyhopchris/repos","events_url":"https://api.github.com/users/lindyhopchris/events{/privacy}","received_events_url":"https://api.github.com/users/lindyhopchris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neomerx/json-api/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"neomerx","id":10420662,"avatar_url":"https://avatars.githubusercontent.com/u/10420662?v=3","gravatar_id":"","url":"https://api.github.com/users/neomerx","html_url":"https://github.com/neomerx","followers_url":"https://api.github.com/users/neomerx/followers","following_url":"https://api.github.com/users/neomerx/following{/other_user}","gists_url":"https://api.github.com/users/neomerx/gists{/gist_id}","starred_url":"https://api.github.com/users/neomerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neomerx/subscriptions","organizations_url":"https://api.github.com/users/neomerx/orgs","repos_url":"https://api.github.com/users/neomerx/repos","events_url":"https://api.github.com/users/neomerx/events{/privacy}","received_events_url":"https://api.github.com/users/neomerx/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-04T14:33:49Z","updated_at":"2015-08-04T16:09:18Z","closed_at":null,"body":"Hi,\r\n\r\nJust wondering how relationship endpoints are meant to be encoded? The encoder interface doesn't seem to have a method for encoding relationships, and I can't find any mention in your wiki about it.\r\n\r\nThe example instance from the JSON-API spec would be:\r\n\r\n``` http\r\nGET /articles/1/relationships/author HTTP/1.1\r\nAccept: application/vnd.api+json\r\n```\r\n\r\n``` http\r\nHTTP/1.1 200 OK\r\nContent-Type: application/vnd.api+json\r\n\r\n{\r\n  \"links\": {\r\n    \"self\": \"/articles/1/relationships/author\",\r\n    \"related\": \"/articles/1/author\"\r\n  },\r\n  \"data\": {\r\n    \"type\": \"people\",\r\n    \"id\": \"12\"\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/neomerx/json-api/issues/comments/127661311","html_url":"https://github.com/neomerx/json-api/issues/55#issuecomment-127661311","issue_url":"https://api.github.com/repos/neomerx/json-api/issues/55","id":127661311,"user":{"login":"neomerx","id":10420662,"avatar_url":"https://avatars.githubusercontent.com/u/10420662?v=3","gravatar_id":"","url":"https://api.github.com/users/neomerx","html_url":"https://github.com/neomerx","followers_url":"https://api.github.com/users/neomerx/followers","following_url":"https://api.github.com/users/neomerx/following{/other_user}","gists_url":"https://api.github.com/users/neomerx/gists{/gist_id}","starred_url":"https://api.github.com/users/neomerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neomerx/subscriptions","organizations_url":"https://api.github.com/users/neomerx/orgs","repos_url":"https://api.github.com/users/neomerx/repos","events_url":"https://api.github.com/users/neomerx/events{/privacy}","received_events_url":"https://api.github.com/users/neomerx/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T16:09:18Z","updated_at":"2015-08-04T16:09:18Z","body":"I admit I don't understand the question. Reading your original question a few more times I can't understand where it might come from.\r\n\r\nMy questions in particular\r\n- what is a 'relationship endpoint'?\r\n- why it should be encoded separately from object?\r\n- what is a real life example of it (maybe this help)?\r\n\r\nI think it will be easier to discuss in more interactive way with [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/neomerx/json-api)"}}