{"action":"opened","number":556,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-js/pulls/556","id":43294056,"html_url":"https://github.com/swagger-api/swagger-js/pull/556","diff_url":"https://github.com/swagger-api/swagger-js/pull/556.diff","patch_url":"https://github.com/swagger-api/swagger-js/pull/556.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/556","number":556,"state":"open","locked":false,"title":"download non json content","user":{"login":"crazySocket","id":1173337,"avatar_url":"https://avatars.githubusercontent.com/u/1173337?v=3","gravatar_id":"","url":"https://api.github.com/users/crazySocket","html_url":"https://github.com/crazySocket","followers_url":"https://api.github.com/users/crazySocket/followers","following_url":"https://api.github.com/users/crazySocket/following{/other_user}","gists_url":"https://api.github.com/users/crazySocket/gists{/gist_id}","starred_url":"https://api.github.com/users/crazySocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazySocket/subscriptions","organizations_url":"https://api.github.com/users/crazySocket/orgs","repos_url":"https://api.github.com/users/crazySocket/repos","events_url":"https://api.github.com/users/crazySocket/events{/privacy}","received_events_url":"https://api.github.com/users/crazySocket/received_events","type":"User","site_admin":false},"body":"when you 'GET' resource you know is not of type \"application/json\" or any text format the resource is passed to browser to handle. For instance if u want to download resource with mime type \"application/octet-stream\" u want browser to ask user where to save. This commit make both that happen and handles error in case of failure.","created_at":"2015-08-25T14:41:59Z","updated_at":"2015-08-25T14:41:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dca53b9124168ed1f55648ba5b1c14205181f9ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-js/pulls/556/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-js/pulls/556/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/556/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-js/statuses/85577e80c20ff88de11217125e2fefaa6019f356","head":{"label":"crazySocket:feature/download-non-json-content","ref":"feature/download-non-json-content","sha":"85577e80c20ff88de11217125e2fefaa6019f356","user":{"login":"crazySocket","id":1173337,"avatar_url":"https://avatars.githubusercontent.com/u/1173337?v=3","gravatar_id":"","url":"https://api.github.com/users/crazySocket","html_url":"https://github.com/crazySocket","followers_url":"https://api.github.com/users/crazySocket/followers","following_url":"https://api.github.com/users/crazySocket/following{/other_user}","gists_url":"https://api.github.com/users/crazySocket/gists{/gist_id}","starred_url":"https://api.github.com/users/crazySocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazySocket/subscriptions","organizations_url":"https://api.github.com/users/crazySocket/orgs","repos_url":"https://api.github.com/users/crazySocket/repos","events_url":"https://api.github.com/users/crazySocket/events{/privacy}","received_events_url":"https://api.github.com/users/crazySocket/received_events","type":"User","site_admin":false},"repo":{"id":41362226,"name":"swagger-js","full_name":"crazySocket/swagger-js","owner":{"login":"crazySocket","id":1173337,"avatar_url":"https://avatars.githubusercontent.com/u/1173337?v=3","gravatar_id":"","url":"https://api.github.com/users/crazySocket","html_url":"https://github.com/crazySocket","followers_url":"https://api.github.com/users/crazySocket/followers","following_url":"https://api.github.com/users/crazySocket/following{/other_user}","gists_url":"https://api.github.com/users/crazySocket/gists{/gist_id}","starred_url":"https://api.github.com/users/crazySocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazySocket/subscriptions","organizations_url":"https://api.github.com/users/crazySocket/orgs","repos_url":"https://api.github.com/users/crazySocket/repos","events_url":"https://api.github.com/users/crazySocket/events{/privacy}","received_events_url":"https://api.github.com/users/crazySocket/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crazySocket/swagger-js","description":"Javascript library to connect to swagger-enabled APIs via browser or nodejs","fork":true,"url":"https://api.github.com/repos/crazySocket/swagger-js","forks_url":"https://api.github.com/repos/crazySocket/swagger-js/forks","keys_url":"https://api.github.com/repos/crazySocket/swagger-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crazySocket/swagger-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crazySocket/swagger-js/teams","hooks_url":"https://api.github.com/repos/crazySocket/swagger-js/hooks","issue_events_url":"https://api.github.com/repos/crazySocket/swagger-js/issues/events{/number}","events_url":"https://api.github.com/repos/crazySocket/swagger-js/events","assignees_url":"https://api.github.com/repos/crazySocket/swagger-js/assignees{/user}","branches_url":"https://api.github.com/repos/crazySocket/swagger-js/branches{/branch}","tags_url":"https://api.github.com/repos/crazySocket/swagger-js/tags","blobs_url":"https://api.github.com/repos/crazySocket/swagger-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crazySocket/swagger-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crazySocket/swagger-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/crazySocket/swagger-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crazySocket/swagger-js/statuses/{sha}","languages_url":"https://api.github.com/repos/crazySocket/swagger-js/languages","stargazers_url":"https://api.github.com/repos/crazySocket/swagger-js/stargazers","contributors_url":"https://api.github.com/repos/crazySocket/swagger-js/contributors","subscribers_url":"https://api.github.com/repos/crazySocket/swagger-js/subscribers","subscription_url":"https://api.github.com/repos/crazySocket/swagger-js/subscription","commits_url":"https://api.github.com/repos/crazySocket/swagger-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/crazySocket/swagger-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/crazySocket/swagger-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/crazySocket/swagger-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/crazySocket/swagger-js/contents/{+path}","compare_url":"https://api.github.com/repos/crazySocket/swagger-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crazySocket/swagger-js/merges","archive_url":"https://api.github.com/repos/crazySocket/swagger-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crazySocket/swagger-js/downloads","issues_url":"https://api.github.com/repos/crazySocket/swagger-js/issues{/number}","pulls_url":"https://api.github.com/repos/crazySocket/swagger-js/pulls{/number}","milestones_url":"https://api.github.com/repos/crazySocket/swagger-js/milestones{/number}","notifications_url":"https://api.github.com/repos/crazySocket/swagger-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crazySocket/swagger-js/labels{/name}","releases_url":"https://api.github.com/repos/crazySocket/swagger-js/releases{/id}","created_at":"2015-08-25T12:32:53Z","updated_at":"2015-08-25T12:32:54Z","pushed_at":"2015-08-25T13:08:14Z","git_url":"git://github.com/crazySocket/swagger-js.git","ssh_url":"git@github.com:crazySocket/swagger-js.git","clone_url":"https://github.com/crazySocket/swagger-js.git","svn_url":"https://github.com/crazySocket/swagger-js","homepage":"http://swagger.io","size":27270,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"swagger-api:master","ref":"master","sha":"cc6982b9090a72b52955935b02b5959cf43dfd59","user":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"repo":{"id":3455070,"name":"swagger-js","full_name":"swagger-api/swagger-js","owner":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swagger-api/swagger-js","description":"Javascript library to connect to swagger-enabled APIs via browser or nodejs","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-js","forks_url":"https://api.github.com/repos/swagger-api/swagger-js/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-js/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-js/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-js/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-js/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-js/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-js/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-js/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-js/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-js/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-js/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-js/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-js/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-js/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-js/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-js/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-js/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-js/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-js/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-js/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-js/releases{/id}","created_at":"2012-02-16T00:08:43Z","updated_at":"2015-08-25T06:15:57Z","pushed_at":"2015-08-25T14:42:00Z","git_url":"git://github.com/swagger-api/swagger-js.git","ssh_url":"git@github.com:swagger-api/swagger-js.git","clone_url":"https://github.com/swagger-api/swagger-js.git","svn_url":"https://github.com/swagger-api/swagger-js","homepage":"http://swagger.io","size":27270,"stargazers_count":451,"watchers_count":451,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":270,"mirror_url":null,"open_issues_count":48,"forks":270,"open_issues":48,"watchers":451,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-js/pulls/556"},"html":{"href":"https://github.com/swagger-api/swagger-js/pull/556"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-js/issues/556"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-js/issues/556/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-js/pulls/556/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-js/pulls/556/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-js/statuses/85577e80c20ff88de11217125e2fefaa6019f356"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":1,"changed_files":1}}