GitHub PullRequestEvent at 2014-03-26 13:49:36
Repository: swagger-ui
Actor: tzach
Payload: {"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/2","id":13746112,"html_url":"https://github.com/cloudius-systems/swagger-ui/pull/2","diff_url":"https://github.com/cloudius-systems/swagger-ui/pull/2.diff","patch_url":"https://github.com/cloudius-systems/swagger-ui/pull/2.patch","issue_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues/2","number":2,"state":"closed","title":"add optional parameter to index.html","user":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?","gravatar_id":"59ea7436ce09f74482caaa43f233fafe","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"body":"This update allow passing a json file URL as a parameter to the index.html file.\r\nfor example http://localhost:8000/ui/index.html?src=http://localhost:8000/ui/api/api-docs.json\r\n\r\nThis will not be useful when the GUI is hosted on OSv itself, but will make it easier to use the same html files on github pages, for example.\r\n\r\nTo use src parameter with a different json host than index.html itself, one need to allow CORS on the server.\r\nIf this is not the case, you might get a \r\n\"Can't read from server. It may not have the appropriate access-control-origin settings.\"\r\n\r\nTo match proper swagger-ui process, update made on src/main/html/index.html, and built using \r\n```npm run-script build```\r\n","created_at":"2014-03-19T16:44:43Z","updated_at":"2014-03-26T13:49:36Z","closed_at":"2014-03-26T13:49:36Z","merged_at":null,"merge_commit_sha":"4f765b46e8a35f48852762249c417261992cb26f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/2/commits","review_comments_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/2/comments","review_comment_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues/2/comments","statuses_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/statuses/444415f45f950f5ddda8b64be034f511e0097e67","head":{"label":"tzach:add-parameter-for-json-location","ref":"add-parameter-for-json-location","sha":"444415f45f950f5ddda8b64be034f511e0097e67","user":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?","gravatar_id":"59ea7436ce09f74482caaa43f233fafe","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"repo":{"id":17900510,"name":"swagger-ui","full_name":"tzach/swagger-ui","owner":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?","gravatar_id":"59ea7436ce09f74482caaa43f233fafe","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tzach/swagger-ui","description":"Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.","fork":true,"url":"https://api.github.com/repos/tzach/swagger-ui","forks_url":"https://api.github.com/repos/tzach/swagger-ui/forks","keys_url":"https://api.github.com/repos/tzach/swagger-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tzach/swagger-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tzach/swagger-ui/teams","hooks_url":"https://api.github.com/repos/tzach/swagger-ui/hooks","issue_events_url":"https://api.github.com/repos/tzach/swagger-ui/issues/events{/number}","events_url":"https://api.github.com/repos/tzach/swagger-ui/events","assignees_url":"https://api.github.com/repos/tzach/swagger-ui/assignees{/user}","branches_url":"https://api.github.com/repos/tzach/swagger-ui/branches{/branch}","tags_url":"https://api.github.com/repos/tzach/swagger-ui/tags","blobs_url":"https://api.github.com/repos/tzach/swagger-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tzach/swagger-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tzach/swagger-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/tzach/swagger-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tzach/swagger-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/tzach/swagger-ui/languages","stargazers_url":"https://api.github.com/repos/tzach/swagger-ui/stargazers","contributors_url":"https://api.github.com/repos/tzach/swagger-ui/contributors","subscribers_url":"https://api.github.com/repos/tzach/swagger-ui/subscribers","subscription_url":"https://api.github.com/repos/tzach/swagger-ui/subscription","commits_url":"https://api.github.com/repos/tzach/swagger-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/tzach/swagger-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/tzach/swagger-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/tzach/swagger-ui/issues/comments/{number}","contents_url":"https://api.github.com/repos/tzach/swagger-ui/contents/{+path}","compare_url":"https://api.github.com/repos/tzach/swagger-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tzach/swagger-ui/merges","archive_url":"https://api.github.com/repos/tzach/swagger-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tzach/swagger-ui/downloads","issues_url":"https://api.github.com/repos/tzach/swagger-ui/issues{/number}","pulls_url":"https://api.github.com/repos/tzach/swagger-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/tzach/swagger-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/tzach/swagger-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tzach/swagger-ui/labels{/name}","releases_url":"https://api.github.com/repos/tzach/swagger-ui/releases{/id}","created_at":"2014-03-19T10:39:49Z","updated_at":"2014-03-19T16:44:43Z","pushed_at":"2014-03-19T16:32:58Z","git_url":"git://github.com/tzach/swagger-ui.git","ssh_url":"git@github.com:tzach/swagger-ui.git","clone_url":"https://github.com/tzach/swagger-ui.git","svn_url":"https://github.com/tzach/swagger-ui","homepage":"http://swagger.wordnik.com","size":3937,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"cloudius-systems:master","ref":"master","sha":"5f3d36dbd2a98b59750d13ecc12b7e843dc809aa","user":{"login":"cloudius-systems","id":3273374,"avatar_url":"https://avatars.githubusercontent.com/u/3273374?","gravatar_id":"6022ae96927de6c31d0c5f7a9c56adef","url":"https://api.github.com/users/cloudius-systems","html_url":"https://github.com/cloudius-systems","followers_url":"https://api.github.com/users/cloudius-systems/followers","following_url":"https://api.github.com/users/cloudius-systems/following{/other_user}","gists_url":"https://api.github.com/users/cloudius-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudius-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudius-systems/subscriptions","organizations_url":"https://api.github.com/users/cloudius-systems/orgs","repos_url":"https://api.github.com/users/cloudius-systems/repos","events_url":"https://api.github.com/users/cloudius-systems/events{/privacy}","received_events_url":"https://api.github.com/users/cloudius-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":16175470,"name":"swagger-ui","full_name":"cloudius-systems/swagger-ui","owner":{"login":"cloudius-systems","id":3273374,"avatar_url":"https://avatars.githubusercontent.com/u/3273374?","gravatar_id":"6022ae96927de6c31d0c5f7a9c56adef","url":"https://api.github.com/users/cloudius-systems","html_url":"https://github.com/cloudius-systems","followers_url":"https://api.github.com/users/cloudius-systems/followers","following_url":"https://api.github.com/users/cloudius-systems/following{/other_user}","gists_url":"https://api.github.com/users/cloudius-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudius-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudius-systems/subscriptions","organizations_url":"https://api.github.com/users/cloudius-systems/orgs","repos_url":"https://api.github.com/users/cloudius-systems/repos","events_url":"https://api.github.com/users/cloudius-systems/events{/privacy}","received_events_url":"https://api.github.com/users/cloudius-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudius-systems/swagger-ui","description":"Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.","fork":true,"url":"https://api.github.com/repos/cloudius-systems/swagger-ui","forks_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/forks","keys_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/teams","hooks_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/hooks","issue_events_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues/events{/number}","events_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/events","assignees_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/assignees{/user}","branches_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/branches{/branch}","tags_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/tags","blobs_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/languages","stargazers_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/stargazers","contributors_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/contributors","subscribers_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/subscribers","subscription_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/subscription","commits_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues/comments/{number}","contents_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/contents/{+path}","compare_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/merges","archive_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/downloads","issues_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues{/number}","pulls_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/labels{/name}","releases_url":"https://api.github.com/repos/cloudius-systems/swagger-ui/releases{/id}","created_at":"2014-01-23T14:56:27Z","updated_at":"2014-02-14T10:26:36Z","pushed_at":"2014-02-14T10:26:36Z","git_url":"git://github.com/cloudius-systems/swagger-ui.git","ssh_url":"git@github.com:cloudius-systems/swagger-ui.git","clone_url":"https://github.com/cloudius-systems/swagger-ui.git","svn_url":"https://github.com/cloudius-systems/swagger-ui","homepage":"http://swagger.wordnik.com","size":3934,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/2"},"html":{"href":"https://github.com/cloudius-systems/swagger-ui/pull/2"},"issue":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues/2"},"comments":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/cloudius-systems/swagger-ui/statuses/444415f45f950f5ddda8b64be034f511e0097e67"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":232,"deletions":160,"changed_files":6}}