{"action":"closed","issue":{"url":"https://api.github.com/repos/ontohub/ontohub-backend/issues/34","repository_url":"https://api.github.com/repos/ontohub/ontohub-backend","labels_url":"https://api.github.com/repos/ontohub/ontohub-backend/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ontohub/ontohub-backend/issues/34/comments","events_url":"https://api.github.com/repos/ontohub/ontohub-backend/issues/34/events","html_url":"https://github.com/ontohub/ontohub-backend/issues/34","id":191665720,"number":34,"title":"Parse relationships object of a POST request","user":{"login":"eugenk","id":339751,"avatar_url":"https://avatars.githubusercontent.com/u/339751?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenk","html_url":"https://github.com/eugenk","followers_url":"https://api.github.com/users/eugenk/followers","following_url":"https://api.github.com/users/eugenk/following{/other_user}","gists_url":"https://api.github.com/users/eugenk/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenk/subscriptions","organizations_url":"https://api.github.com/users/eugenk/orgs","repos_url":"https://api.github.com/users/eugenk/repos","events_url":"https://api.github.com/users/eugenk/events{/privacy}","received_events_url":"https://api.github.com/users/eugenk/received_events","type":"User","site_admin":false},"labels":[{"id":448781008,"url":"https://api.github.com/repos/ontohub/ontohub-backend/labels/ready%20for%20review","name":"ready for review","color":"e68030","default":false}],"state":"closed","locked":false,"assignee":{"login":"eugenk","id":339751,"avatar_url":"https://avatars.githubusercontent.com/u/339751?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenk","html_url":"https://github.com/eugenk","followers_url":"https://api.github.com/users/eugenk/followers","following_url":"https://api.github.com/users/eugenk/following{/other_user}","gists_url":"https://api.github.com/users/eugenk/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenk/subscriptions","organizations_url":"https://api.github.com/users/eugenk/orgs","repos_url":"https://api.github.com/users/eugenk/repos","events_url":"https://api.github.com/users/eugenk/events{/privacy}","received_events_url":"https://api.github.com/users/eugenk/received_events","type":"User","site_admin":false},"assignees":[{"login":"eugenk","id":339751,"avatar_url":"https://avatars.githubusercontent.com/u/339751?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenk","html_url":"https://github.com/eugenk","followers_url":"https://api.github.com/users/eugenk/followers","following_url":"https://api.github.com/users/eugenk/following{/other_user}","gists_url":"https://api.github.com/users/eugenk/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenk/subscriptions","organizations_url":"https://api.github.com/users/eugenk/orgs","repos_url":"https://api.github.com/users/eugenk/repos","events_url":"https://api.github.com/users/eugenk/events{/privacy}","received_events_url":"https://api.github.com/users/eugenk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-11-25T10:05:17Z","updated_at":"2016-11-25T11:46:33Z","closed_at":"2016-11-25T11:46:33Z","body":"Ember sends data as\r\n```json\r\n{\r\n  \"data\": {\r\n    \"attributes\": {\r\n      \"name\": \"foobar\",\r\n      \"description\": \"barfoo\"\r\n    },\r\n    \"relationships\": {\r\n      \"namespace\": {\r\n        \"data\": {\r\n          \"type\": \"namespaces\",\r\n          \"id\": \"ada\"\r\n        }\r\n      }\r\n    },\r\n    \"type\": \"repositories\"\r\n  }\r\n}\r\n```\r\nand not as\r\n```json\r\n{\r\n  \"data\": {\r\n    \"attributes\": {\r\n      \"name\": \"foobar\",\r\n      \"description\": \"barfoo\",\r\n      \"namespace_id\": \"ada\"\r\n    },\r\n    \"type\": \"repositories\"\r\n  }\r\n}\r\n```\r\nBoth of them are compatible to the JSON API. The upper one is currently parsed, which we don't want.\r\n\r\nParse the Ember JSON body."}}
{"actor":{"display_login":"eugenk"}}