{"action":"created","issue":{"url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/700","repository_url":"https://api.github.com/repos/cerebris/jsonapi-resources","labels_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/700/comments","events_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/700/events","html_url":"https://github.com/cerebris/jsonapi-resources/pull/700","id":153171652,"number":700,"title":"Ensure media type of Accept header is valid according to the JSON API spec","user":{"login":"jerelmiller","id":565661,"avatar_url":"https://avatars.githubusercontent.com/u/565661?v=3","gravatar_id":"","url":"https://api.github.com/users/jerelmiller","html_url":"https://github.com/jerelmiller","followers_url":"https://api.github.com/users/jerelmiller/followers","following_url":"https://api.github.com/users/jerelmiller/following{/other_user}","gists_url":"https://api.github.com/users/jerelmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/jerelmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerelmiller/subscriptions","organizations_url":"https://api.github.com/users/jerelmiller/orgs","repos_url":"https://api.github.com/users/jerelmiller/repos","events_url":"https://api.github.com/users/jerelmiller/events{/privacy}","received_events_url":"https://api.github.com/users/jerelmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-05T05:44:24Z","updated_at":"2016-05-06T17:49:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cerebris/jsonapi-resources/pulls/700","html_url":"https://github.com/cerebris/jsonapi-resources/pull/700","diff_url":"https://github.com/cerebris/jsonapi-resources/pull/700.diff","patch_url":"https://github.com/cerebris/jsonapi-resources/pull/700.patch"},"body":"Closes #699 \r\n\r\nEnsure media type of Accept header is valid according to the JSON API spec.\r\n\r\n* Adds before_action to validate accept header\r\n* Add tests to cover all use cases\r\n* Respond with 406 status if invalid\r\n* Include appropriate error classes and translations"},"comment":{"url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/comments/217512600","html_url":"https://github.com/cerebris/jsonapi-resources/pull/700#issuecomment-217512600","issue_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/700","id":217512600,"user":{"login":"jerelmiller","id":565661,"avatar_url":"https://avatars.githubusercontent.com/u/565661?v=3","gravatar_id":"","url":"https://api.github.com/users/jerelmiller","html_url":"https://github.com/jerelmiller","followers_url":"https://api.github.com/users/jerelmiller/followers","following_url":"https://api.github.com/users/jerelmiller/following{/other_user}","gists_url":"https://api.github.com/users/jerelmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/jerelmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerelmiller/subscriptions","organizations_url":"https://api.github.com/users/jerelmiller/orgs","repos_url":"https://api.github.com/users/jerelmiller/repos","events_url":"https://api.github.com/users/jerelmiller/events{/privacy}","received_events_url":"https://api.github.com/users/jerelmiller/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T17:49:50Z","updated_at":"2016-05-06T17:49:50Z","body":"This has definitely been one of the more confusing aspects for me of that spec since its not super clear what exactly it looks like. Too bad the spec doesn't include any examples.\r\n\r\nI'll be glad to update test cases and requirements after we have a better understanding of what the spec is trying to say. I wouldn't be surprised if I misinterpreted it for this PR."}}