{"action":"opened","number":1145,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1145","id":37243677,"html_url":"https://github.com/swagger-api/swagger-core/pull/1145","diff_url":"https://github.com/swagger-api/swagger-core/pull/1145.diff","patch_url":"https://github.com/swagger-api/swagger-core/pull/1145.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1145","number":1145,"state":"open","locked":false,"title":"Improved accept header for swagger request.","user":{"login":"MarvGilb","id":12252862,"avatar_url":"https://avatars.githubusercontent.com/u/12252862?v=3","gravatar_id":"","url":"https://api.github.com/users/MarvGilb","html_url":"https://github.com/MarvGilb","followers_url":"https://api.github.com/users/MarvGilb/followers","following_url":"https://api.github.com/users/MarvGilb/following{/other_user}","gists_url":"https://api.github.com/users/MarvGilb/gists{/gist_id}","starred_url":"https://api.github.com/users/MarvGilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarvGilb/subscriptions","organizations_url":"https://api.github.com/users/MarvGilb/orgs","repos_url":"https://api.github.com/users/MarvGilb/repos","events_url":"https://api.github.com/users/MarvGilb/events{/privacy}","received_events_url":"https://api.github.com/users/MarvGilb/received_events","type":"User","site_admin":false},"body":"1. Outsourced code for swagger creation, so that duplicate code is\r\nreduced.\r\n2. Changed path annotations of getListingJson and getListingYaml and a\r\nnew methods that supports swagger with .yaml or .json at the end.\r\nThrough this swagger now supports 3 ways to request the documentation.\r\n/swagger , /swagger.json & /swagger.yaml\r\nThis way URL-based negotiation (http://docs.jboss.org/resteasy/docs/2.3.7.Final/userguide/html/JAX-RS_Content_Negotiation.html#media_mappings) of RESTeasy works, if a media type mapping from .json to application/json is configured.","created_at":"2015-06-09T11:33:12Z","updated_at":"2015-06-09T11:33:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1145/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1145/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1145/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/bbb9cf1f17a09f61ba9be43f77fe243e16e0de7c","head":{"label":"MarvGilb:master","ref":"master","sha":"bbb9cf1f17a09f61ba9be43f77fe243e16e0de7c","user":{"login":"MarvGilb","id":12252862,"avatar_url":"https://avatars.githubusercontent.com/u/12252862?v=3","gravatar_id":"","url":"https://api.github.com/users/MarvGilb","html_url":"https://github.com/MarvGilb","followers_url":"https://api.github.com/users/MarvGilb/followers","following_url":"https://api.github.com/users/MarvGilb/following{/other_user}","gists_url":"https://api.github.com/users/MarvGilb/gists{/gist_id}","starred_url":"https://api.github.com/users/MarvGilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarvGilb/subscriptions","organizations_url":"https://api.github.com/users/MarvGilb/orgs","repos_url":"https://api.github.com/users/MarvGilb/repos","events_url":"https://api.github.com/users/MarvGilb/events{/privacy}","received_events_url":"https://api.github.com/users/MarvGilb/received_events","type":"User","site_admin":false},"repo":{"id":37125318,"name":"swagger-core","full_name":"MarvGilb/swagger-core","owner":{"login":"MarvGilb","id":12252862,"avatar_url":"https://avatars.githubusercontent.com/u/12252862?v=3","gravatar_id":"","url":"https://api.github.com/users/MarvGilb","html_url":"https://github.com/MarvGilb","followers_url":"https://api.github.com/users/MarvGilb/followers","following_url":"https://api.github.com/users/MarvGilb/following{/other_user}","gists_url":"https://api.github.com/users/MarvGilb/gists{/gist_id}","starred_url":"https://api.github.com/users/MarvGilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarvGilb/subscriptions","organizations_url":"https://api.github.com/users/MarvGilb/orgs","repos_url":"https://api.github.com/users/MarvGilb/repos","events_url":"https://api.github.com/users/MarvGilb/events{/privacy}","received_events_url":"https://api.github.com/users/MarvGilb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarvGilb/swagger-core","description":"Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API","fork":true,"url":"https://api.github.com/repos/MarvGilb/swagger-core","forks_url":"https://api.github.com/repos/MarvGilb/swagger-core/forks","keys_url":"https://api.github.com/repos/MarvGilb/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarvGilb/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarvGilb/swagger-core/teams","hooks_url":"https://api.github.com/repos/MarvGilb/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/MarvGilb/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/MarvGilb/swagger-core/events","assignees_url":"https://api.github.com/repos/MarvGilb/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/MarvGilb/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/MarvGilb/swagger-core/tags","blobs_url":"https://api.github.com/repos/MarvGilb/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarvGilb/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarvGilb/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarvGilb/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarvGilb/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/MarvGilb/swagger-core/languages","stargazers_url":"https://api.github.com/repos/MarvGilb/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/MarvGilb/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/MarvGilb/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/MarvGilb/swagger-core/subscription","commits_url":"https://api.github.com/repos/MarvGilb/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarvGilb/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarvGilb/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarvGilb/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarvGilb/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/MarvGilb/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarvGilb/swagger-core/merges","archive_url":"https://api.github.com/repos/MarvGilb/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarvGilb/swagger-core/downloads","issues_url":"https://api.github.com/repos/MarvGilb/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/MarvGilb/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/MarvGilb/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/MarvGilb/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarvGilb/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/MarvGilb/swagger-core/releases{/id}","created_at":"2015-06-09T10:19:38Z","updated_at":"2015-06-09T10:19:39Z","pushed_at":"2015-06-09T10:33:05Z","git_url":"git://github.com/MarvGilb/swagger-core.git","ssh_url":"git@github.com:MarvGilb/swagger-core.git","clone_url":"https://github.com/MarvGilb/swagger-core.git","svn_url":"https://github.com/MarvGilb/swagger-core","homepage":"http://swagger.io","size":30909,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"9c67549cc4e30db916dac0165f0549485a6eb4c7","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":2003641,"name":"swagger-core","full_name":"swagger-api/swagger-core","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-core","description":"Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-core","forks_url":"https://api.github.com/repos/swagger-api/swagger-core/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-core/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-core/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-core/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-core/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-core/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-core/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-core/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-core/releases{/id}","created_at":"2011-07-05T23:44:11Z","updated_at":"2015-06-05T23:31:21Z","pushed_at":"2015-06-08T18:28:23Z","git_url":"git://github.com/swagger-api/swagger-core.git","ssh_url":"git@github.com:swagger-api/swagger-core.git","clone_url":"https://github.com/swagger-api/swagger-core.git","svn_url":"https://github.com/swagger-api/swagger-core","homepage":"http://swagger.io","size":30909,"stargazers_count":2610,"watchers_count":2610,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":917,"mirror_url":null,"open_issues_count":41,"forks":917,"open_issues":41,"watchers":2610,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1145"},"html":{"href":"https://github.com/swagger-api/swagger-core/pull/1145"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/1145"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/1145/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1145/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1145/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-core/statuses/bbb9cf1f17a09f61ba9be43f77fe243e16e0de7c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":34,"changed_files":1}}