{"action":"created","issue":{"url":"https://api.github.com/repos/phalt/pokeapi/issues/24","labels_url":"https://api.github.com/repos/phalt/pokeapi/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/phalt/pokeapi/issues/24/comments","events_url":"https://api.github.com/repos/phalt/pokeapi/issues/24/events","html_url":"https://github.com/phalt/pokeapi/pull/24","id":58362706,"number":24,"title":"Add XML support","user":{"login":"immewnity","id":3454676,"avatar_url":"https://avatars.githubusercontent.com/u/3454676?v=3","gravatar_id":"","url":"https://api.github.com/users/immewnity","html_url":"https://github.com/immewnity","followers_url":"https://api.github.com/users/immewnity/followers","following_url":"https://api.github.com/users/immewnity/following{/other_user}","gists_url":"https://api.github.com/users/immewnity/gists{/gist_id}","starred_url":"https://api.github.com/users/immewnity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immewnity/subscriptions","organizations_url":"https://api.github.com/users/immewnity/orgs","repos_url":"https://api.github.com/users/immewnity/repos","events_url":"https://api.github.com/users/immewnity/events{/privacy}","received_events_url":"https://api.github.com/users/immewnity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T14:50:52Z","updated_at":"2015-02-20T15:07:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phalt/pokeapi/pulls/24","html_url":"https://github.com/phalt/pokeapi/pull/24","diff_url":"https://github.com/phalt/pokeapi/pull/24.diff","patch_url":"https://github.com/phalt/pokeapi/pull/24.patch"},"body":"This adds XML support. By default, most browsers will show XML due to the Accept header sent. curl will show JSON by default. Either of these can be changed by appending ?format=json or ?format=xml onto the URL, respectively. Changing this behavior would require changing browser or curl settings."},"comment":{"url":"https://api.github.com/repos/phalt/pokeapi/issues/comments/75252407","html_url":"https://github.com/phalt/pokeapi/pull/24#issuecomment-75252407","issue_url":"https://api.github.com/repos/phalt/pokeapi/issues/24","id":75252407,"user":{"login":"phalt","id":490685,"avatar_url":"https://avatars.githubusercontent.com/u/490685?v=3","gravatar_id":"","url":"https://api.github.com/users/phalt","html_url":"https://github.com/phalt","followers_url":"https://api.github.com/users/phalt/followers","following_url":"https://api.github.com/users/phalt/following{/other_user}","gists_url":"https://api.github.com/users/phalt/gists{/gist_id}","starred_url":"https://api.github.com/users/phalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalt/subscriptions","organizations_url":"https://api.github.com/users/phalt/orgs","repos_url":"https://api.github.com/users/phalt/repos","events_url":"https://api.github.com/users/phalt/events{/privacy}","received_events_url":"https://api.github.com/users/phalt/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T15:07:23Z","updated_at":"2015-02-20T15:07:23Z","body":"I'm still apprehensive to make this change as we'll be breaking a lot of web-based services using the API (such as the javascript widget on the front page of pokeapi.)\r\n\r\nAs a rule: once a web API is in the public domain you should not drastically change it's functionality. We need to investigate this more and see if we can make it json default and still support xml.\r\n\r\nAlso, this will need tests to make sure 1) xml works and 2) json is still the default."}}