{"action":"created","comment":{"url":"https://api.github.com/repos/azurestandard/api-spec/pulls/comments/58212577","id":58212577,"diff_hunk":"@@ -2162,8 +2162,20 @@\n             \"required\": true,\n             \"type\": \"integer\",\n             \"format\": \"int64\"\n+          },\n+          {\n+            \"name\": \"accept\",\n+            \"in\": \"query\",\n+            \"description\": \"override the HTTP Accept header to chose the response type.  Empty and unrecognized values will result in application/json.\",\n+            \"required\": true,","path":"public.json","position":9,"original_position":9,"commit_id":"9b4ef3980d368c37ec87ea60f568d18edf50f6eb","original_commit_id":"9b4ef3980d368c37ec87ea60f568d18edf50f6eb","user":{"login":"colin-merc-tech","id":12518291,"avatar_url":"https://avatars.githubusercontent.com/u/12518291?v=3","gravatar_id":"","url":"https://api.github.com/users/colin-merc-tech","html_url":"https://github.com/colin-merc-tech","followers_url":"https://api.github.com/users/colin-merc-tech/followers","following_url":"https://api.github.com/users/colin-merc-tech/following{/other_user}","gists_url":"https://api.github.com/users/colin-merc-tech/gists{/gist_id}","starred_url":"https://api.github.com/users/colin-merc-tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin-merc-tech/subscriptions","organizations_url":"https://api.github.com/users/colin-merc-tech/orgs","repos_url":"https://api.github.com/users/colin-merc-tech/repos","events_url":"https://api.github.com/users/colin-merc-tech/events{/privacy}","received_events_url":"https://api.github.com/users/colin-merc-tech/received_events","type":"User","site_admin":false},"body":"Is this value really required? the description and the backing code would indicate it's not.","created_at":"2016-04-01T14:24:24Z","updated_at":"2016-04-01T14:24:24Z","html_url":"https://github.com/azurestandard/api-spec/pull/83#discussion_r58212577","pull_request_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/comments/58212577"},"html":{"href":"https://github.com/azurestandard/api-spec/pull/83#discussion_r58212577"},"pull_request":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/azurestandard/api-spec/pulls/83","id":63174279,"html_url":"https://github.com/azurestandard/api-spec/pull/83","diff_url":"https://github.com/azurestandard/api-spec/pull/83.diff","patch_url":"https://github.com/azurestandard/api-spec/pull/83.patch","issue_url":"https://api.github.com/repos/azurestandard/api-spec/issues/83","number":83,"state":"open","locked":false,"title":"public.json: Add ?accept=<mime> to GET /order/{id}","user":{"login":"wking","id":209920,"avatar_url":"https://avatars.githubusercontent.com/u/209920?v=3","gravatar_id":"","url":"https://api.github.com/users/wking","html_url":"https://github.com/wking","followers_url":"https://api.github.com/users/wking/followers","following_url":"https://api.github.com/users/wking/following{/other_user}","gists_url":"https://api.github.com/users/wking/gists{/gist_id}","starred_url":"https://api.github.com/users/wking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wking/subscriptions","organizations_url":"https://api.github.com/users/wking/orgs","repos_url":"https://api.github.com/users/wking/repos","events_url":"https://api.github.com/users/wking/events{/privacy}","received_events_url":"https://api.github.com/users/wking/received_events","type":"User","site_admin":false},"body":"JavaScript makes it easy to set headers on an `XMLHttpRequest` or\nsimilar, but it's hard to set headers like that in an `<a href=\"…\">`\nlink (there is an advisory [`type` attribute][1], but it's just a hint,\nnot a suggestion for the `Accept` header that the agent should use when\nfollowing that link).  You may be able to work around this with some\ndraft [File API][3] [blob manipulation][2] or by [reading the data into\nmemory and building a][4] [data URI][5], but those are both more trouble\nthan getting a PDF or CSV order representation should require.\n\nThis commit adds a new `accept` query parameter, so clients that have\ntrouble setting an `Accept` header have an alternative channel for\nsupplying that information.\n\nIt also documents (with a [per-operation `produces`][6]) the supported\nMIME types for the order response.  The PDF MIME type is from [RFC\n3778][7] and the CSV is from [RFC 4180][8].\n\n[1]: https://www.w3.org/TR/html5/links.html#attr-hyperlink-type\n[2]: http://stackoverflow.com/a/35632133\n[3]: https://w3c.github.io/FileAPI/#dfn-createObjectURL\n[4]: http://stackoverflow.com/a/20361958\n[5]: http://tools.ietf.org/html/rfc2397\n[6]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#fixed-fields-5\n[7]: http://tools.ietf.org/html/rfc3778\n[8]: http://tools.ietf.org/html/rfc4180","created_at":"2016-03-17T05:12:52Z","updated_at":"2016-04-01T14:24:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2de75b2bad07a76034c463ccf515546e70479c4","assignee":{"login":"colin-merc-tech","id":12518291,"avatar_url":"https://avatars.githubusercontent.com/u/12518291?v=3","gravatar_id":"","url":"https://api.github.com/users/colin-merc-tech","html_url":"https://github.com/colin-merc-tech","followers_url":"https://api.github.com/users/colin-merc-tech/followers","following_url":"https://api.github.com/users/colin-merc-tech/following{/other_user}","gists_url":"https://api.github.com/users/colin-merc-tech/gists{/gist_id}","starred_url":"https://api.github.com/users/colin-merc-tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin-merc-tech/subscriptions","organizations_url":"https://api.github.com/users/colin-merc-tech/orgs","repos_url":"https://api.github.com/users/colin-merc-tech/repos","events_url":"https://api.github.com/users/colin-merc-tech/events{/privacy}","received_events_url":"https://api.github.com/users/colin-merc-tech/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/azurestandard/api-spec/milestones/1","html_url":"https://github.com/azurestandard/api-spec/milestones/Website:%20Internal%20Beta%20Release","labels_url":"https://api.github.com/repos/azurestandard/api-spec/milestones/1/labels","id":1567293,"number":1,"title":"Website: Internal Beta Release","description":"In anticipation of our new website this milestone will include issues to reach our internal beta release of the site.","creator":{"login":"tompetersjr","id":11820955,"avatar_url":"https://avatars.githubusercontent.com/u/11820955?v=3","gravatar_id":"","url":"https://api.github.com/users/tompetersjr","html_url":"https://github.com/tompetersjr","followers_url":"https://api.github.com/users/tompetersjr/followers","following_url":"https://api.github.com/users/tompetersjr/following{/other_user}","gists_url":"https://api.github.com/users/tompetersjr/gists{/gist_id}","starred_url":"https://api.github.com/users/tompetersjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tompetersjr/subscriptions","organizations_url":"https://api.github.com/users/tompetersjr/orgs","repos_url":"https://api.github.com/users/tompetersjr/repos","events_url":"https://api.github.com/users/tompetersjr/events{/privacy}","received_events_url":"https://api.github.com/users/tompetersjr/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"open","created_at":"2016-02-05T22:05:18Z","updated_at":"2016-03-18T20:27:56Z","due_on":"2016-03-11T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/83/commits","review_comments_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/83/comments","review_comment_url":"https://api.github.com/repos/azurestandard/api-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azurestandard/api-spec/issues/83/comments","statuses_url":"https://api.github.com/repos/azurestandard/api-spec/statuses/9b4ef3980d368c37ec87ea60f568d18edf50f6eb","head":{"label":"azurestandard:tk/order-accept","ref":"tk/order-accept","sha":"9b4ef3980d368c37ec87ea60f568d18edf50f6eb","user":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"repo":{"id":26563142,"name":"api-spec","full_name":"azurestandard/api-spec","owner":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azurestandard/api-spec","description":"Swagger specs for Azure's API","fork":false,"url":"https://api.github.com/repos/azurestandard/api-spec","forks_url":"https://api.github.com/repos/azurestandard/api-spec/forks","keys_url":"https://api.github.com/repos/azurestandard/api-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azurestandard/api-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azurestandard/api-spec/teams","hooks_url":"https://api.github.com/repos/azurestandard/api-spec/hooks","issue_events_url":"https://api.github.com/repos/azurestandard/api-spec/issues/events{/number}","events_url":"https://api.github.com/repos/azurestandard/api-spec/events","assignees_url":"https://api.github.com/repos/azurestandard/api-spec/assignees{/user}","branches_url":"https://api.github.com/repos/azurestandard/api-spec/branches{/branch}","tags_url":"https://api.github.com/repos/azurestandard/api-spec/tags","blobs_url":"https://api.github.com/repos/azurestandard/api-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azurestandard/api-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azurestandard/api-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/azurestandard/api-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azurestandard/api-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/azurestandard/api-spec/languages","stargazers_url":"https://api.github.com/repos/azurestandard/api-spec/stargazers","contributors_url":"https://api.github.com/repos/azurestandard/api-spec/contributors","subscribers_url":"https://api.github.com/repos/azurestandard/api-spec/subscribers","subscription_url":"https://api.github.com/repos/azurestandard/api-spec/subscription","commits_url":"https://api.github.com/repos/azurestandard/api-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/azurestandard/api-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/azurestandard/api-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/azurestandard/api-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/azurestandard/api-spec/contents/{+path}","compare_url":"https://api.github.com/repos/azurestandard/api-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azurestandard/api-spec/merges","archive_url":"https://api.github.com/repos/azurestandard/api-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azurestandard/api-spec/downloads","issues_url":"https://api.github.com/repos/azurestandard/api-spec/issues{/number}","pulls_url":"https://api.github.com/repos/azurestandard/api-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/azurestandard/api-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/azurestandard/api-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azurestandard/api-spec/labels{/name}","releases_url":"https://api.github.com/repos/azurestandard/api-spec/releases{/id}","deployments_url":"https://api.github.com/repos/azurestandard/api-spec/deployments","created_at":"2014-11-13T00:35:58Z","updated_at":"2016-01-13T21:43:53Z","pushed_at":"2016-03-29T18:19:55Z","git_url":"git://github.com/azurestandard/api-spec.git","ssh_url":"git@github.com:azurestandard/api-spec.git","clone_url":"https://github.com/azurestandard/api-spec.git","svn_url":"https://github.com/azurestandard/api-spec","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"azurestandard:master","ref":"master","sha":"f6fdcc3ea8aef20e98a1c789abab01d5e65669fc","user":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"repo":{"id":26563142,"name":"api-spec","full_name":"azurestandard/api-spec","owner":{"login":"azurestandard","id":4581874,"avatar_url":"https://avatars.githubusercontent.com/u/4581874?v=3","gravatar_id":"","url":"https://api.github.com/users/azurestandard","html_url":"https://github.com/azurestandard","followers_url":"https://api.github.com/users/azurestandard/followers","following_url":"https://api.github.com/users/azurestandard/following{/other_user}","gists_url":"https://api.github.com/users/azurestandard/gists{/gist_id}","starred_url":"https://api.github.com/users/azurestandard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azurestandard/subscriptions","organizations_url":"https://api.github.com/users/azurestandard/orgs","repos_url":"https://api.github.com/users/azurestandard/repos","events_url":"https://api.github.com/users/azurestandard/events{/privacy}","received_events_url":"https://api.github.com/users/azurestandard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azurestandard/api-spec","description":"Swagger specs for Azure's API","fork":false,"url":"https://api.github.com/repos/azurestandard/api-spec","forks_url":"https://api.github.com/repos/azurestandard/api-spec/forks","keys_url":"https://api.github.com/repos/azurestandard/api-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azurestandard/api-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azurestandard/api-spec/teams","hooks_url":"https://api.github.com/repos/azurestandard/api-spec/hooks","issue_events_url":"https://api.github.com/repos/azurestandard/api-spec/issues/events{/number}","events_url":"https://api.github.com/repos/azurestandard/api-spec/events","assignees_url":"https://api.github.com/repos/azurestandard/api-spec/assignees{/user}","branches_url":"https://api.github.com/repos/azurestandard/api-spec/branches{/branch}","tags_url":"https://api.github.com/repos/azurestandard/api-spec/tags","blobs_url":"https://api.github.com/repos/azurestandard/api-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azurestandard/api-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azurestandard/api-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/azurestandard/api-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azurestandard/api-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/azurestandard/api-spec/languages","stargazers_url":"https://api.github.com/repos/azurestandard/api-spec/stargazers","contributors_url":"https://api.github.com/repos/azurestandard/api-spec/contributors","subscribers_url":"https://api.github.com/repos/azurestandard/api-spec/subscribers","subscription_url":"https://api.github.com/repos/azurestandard/api-spec/subscription","commits_url":"https://api.github.com/repos/azurestandard/api-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/azurestandard/api-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/azurestandard/api-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/azurestandard/api-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/azurestandard/api-spec/contents/{+path}","compare_url":"https://api.github.com/repos/azurestandard/api-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azurestandard/api-spec/merges","archive_url":"https://api.github.com/repos/azurestandard/api-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azurestandard/api-spec/downloads","issues_url":"https://api.github.com/repos/azurestandard/api-spec/issues{/number}","pulls_url":"https://api.github.com/repos/azurestandard/api-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/azurestandard/api-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/azurestandard/api-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azurestandard/api-spec/labels{/name}","releases_url":"https://api.github.com/repos/azurestandard/api-spec/releases{/id}","deployments_url":"https://api.github.com/repos/azurestandard/api-spec/deployments","created_at":"2014-11-13T00:35:58Z","updated_at":"2016-01-13T21:43:53Z","pushed_at":"2016-03-29T18:19:55Z","git_url":"git://github.com/azurestandard/api-spec.git","ssh_url":"git@github.com:azurestandard/api-spec.git","clone_url":"https://github.com/azurestandard/api-spec.git","svn_url":"https://github.com/azurestandard/api-spec","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/83"},"html":{"href":"https://github.com/azurestandard/api-spec/pull/83"},"issue":{"href":"https://api.github.com/repos/azurestandard/api-spec/issues/83"},"comments":{"href":"https://api.github.com/repos/azurestandard/api-spec/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azurestandard/api-spec/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/azurestandard/api-spec/statuses/9b4ef3980d368c37ec87ea60f568d18edf50f6eb"}}}}