{"action":"closed","number":1066,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/1066","id":85945944,"html_url":"https://github.com/swagger-api/swagger-editor/pull/1066","diff_url":"https://github.com/swagger-api/swagger-editor/pull/1066.diff","patch_url":"https://github.com/swagger-api/swagger-editor/pull/1066.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1066","number":1066,"state":"closed","locked":false,"title":"Add the possibility to easily proxy API requests","user":{"login":"iangelov","id":1127871,"avatar_url":"https://avatars2.githubusercontent.com/u/1127871?v=3","gravatar_id":"","url":"https://api.github.com/users/iangelov","html_url":"https://github.com/iangelov","followers_url":"https://api.github.com/users/iangelov/followers","following_url":"https://api.github.com/users/iangelov/following{/other_user}","gists_url":"https://api.github.com/users/iangelov/gists{/gist_id}","starred_url":"https://api.github.com/users/iangelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangelov/subscriptions","organizations_url":"https://api.github.com/users/iangelov/orgs","repos_url":"https://api.github.com/users/iangelov/repos","events_url":"https://api.github.com/users/iangelov/events{/privacy}","received_events_url":"https://api.github.com/users/iangelov/received_events","type":"User","site_admin":false},"body":"Hi guys,\n\nWe recently had an issue where we couldn't use Swagger to trigger requests to one of our APIs due to the CORS policy. Luckily, http-server was able to accommodate our case by allowing us to pass the \"-P\" option, along with our endpoint - so that http-server proxies all of the non-editor requests to our API. We've a container image with the change, but I thought that it might be nice to make this a part of the standard distribution. Additionally, I've changed the run command to only create ephemeral containers (in order not to pile those up).\n\nHere's how it would work:\ndocker run --rm -p 80:8080 swaggerapi/swagger-editor [-P http://api-endpoint]\n\nThe change is pretty simple - converting CMD to ENTRYPOINT allows one to have sane defaults, with the additional flexibility of easily adding options in case they're needed.\n","created_at":"2016-09-20T10:07:47Z","updated_at":"2017-06-08T22:56:05Z","closed_at":"2017-06-08T22:56:05Z","merged_at":null,"merge_commit_sha":"286f0346cf272667b3380c19181c5d62833a2468","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/1066/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/1066/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1066/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-editor/statuses/f3e7b0e7baa5a6efc3e7039b5bc23835241d4344","head":{"label":"iangelov:master","ref":"master","sha":"f3e7b0e7baa5a6efc3e7039b5bc23835241d4344","user":{"login":"iangelov","id":1127871,"avatar_url":"https://avatars2.githubusercontent.com/u/1127871?v=3","gravatar_id":"","url":"https://api.github.com/users/iangelov","html_url":"https://github.com/iangelov","followers_url":"https://api.github.com/users/iangelov/followers","following_url":"https://api.github.com/users/iangelov/following{/other_user}","gists_url":"https://api.github.com/users/iangelov/gists{/gist_id}","starred_url":"https://api.github.com/users/iangelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangelov/subscriptions","organizations_url":"https://api.github.com/users/iangelov/orgs","repos_url":"https://api.github.com/users/iangelov/repos","events_url":"https://api.github.com/users/iangelov/events{/privacy}","received_events_url":"https://api.github.com/users/iangelov/received_events","type":"User","site_admin":false},"repo":{"id":68698121,"name":"swagger-editor","full_name":"iangelov/swagger-editor","owner":{"login":"iangelov","id":1127871,"avatar_url":"https://avatars2.githubusercontent.com/u/1127871?v=3","gravatar_id":"","url":"https://api.github.com/users/iangelov","html_url":"https://github.com/iangelov","followers_url":"https://api.github.com/users/iangelov/followers","following_url":"https://api.github.com/users/iangelov/following{/other_user}","gists_url":"https://api.github.com/users/iangelov/gists{/gist_id}","starred_url":"https://api.github.com/users/iangelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangelov/subscriptions","organizations_url":"https://api.github.com/users/iangelov/orgs","repos_url":"https://api.github.com/users/iangelov/repos","events_url":"https://api.github.com/users/iangelov/events{/privacy}","received_events_url":"https://api.github.com/users/iangelov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iangelov/swagger-editor","description":"Swagger Editor","fork":true,"url":"https://api.github.com/repos/iangelov/swagger-editor","forks_url":"https://api.github.com/repos/iangelov/swagger-editor/forks","keys_url":"https://api.github.com/repos/iangelov/swagger-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iangelov/swagger-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iangelov/swagger-editor/teams","hooks_url":"https://api.github.com/repos/iangelov/swagger-editor/hooks","issue_events_url":"https://api.github.com/repos/iangelov/swagger-editor/issues/events{/number}","events_url":"https://api.github.com/repos/iangelov/swagger-editor/events","assignees_url":"https://api.github.com/repos/iangelov/swagger-editor/assignees{/user}","branches_url":"https://api.github.com/repos/iangelov/swagger-editor/branches{/branch}","tags_url":"https://api.github.com/repos/iangelov/swagger-editor/tags","blobs_url":"https://api.github.com/repos/iangelov/swagger-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iangelov/swagger-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iangelov/swagger-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/iangelov/swagger-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iangelov/swagger-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/iangelov/swagger-editor/languages","stargazers_url":"https://api.github.com/repos/iangelov/swagger-editor/stargazers","contributors_url":"https://api.github.com/repos/iangelov/swagger-editor/contributors","subscribers_url":"https://api.github.com/repos/iangelov/swagger-editor/subscribers","subscription_url":"https://api.github.com/repos/iangelov/swagger-editor/subscription","commits_url":"https://api.github.com/repos/iangelov/swagger-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/iangelov/swagger-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/iangelov/swagger-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/iangelov/swagger-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/iangelov/swagger-editor/contents/{+path}","compare_url":"https://api.github.com/repos/iangelov/swagger-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iangelov/swagger-editor/merges","archive_url":"https://api.github.com/repos/iangelov/swagger-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iangelov/swagger-editor/downloads","issues_url":"https://api.github.com/repos/iangelov/swagger-editor/issues{/number}","pulls_url":"https://api.github.com/repos/iangelov/swagger-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/iangelov/swagger-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/iangelov/swagger-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iangelov/swagger-editor/labels{/name}","releases_url":"https://api.github.com/repos/iangelov/swagger-editor/releases{/id}","deployments_url":"https://api.github.com/repos/iangelov/swagger-editor/deployments","created_at":"2016-09-20T09:49:10Z","updated_at":"2016-09-20T09:49:12Z","pushed_at":"2016-09-20T10:04:20Z","git_url":"git://github.com/iangelov/swagger-editor.git","ssh_url":"git@github.com:iangelov/swagger-editor.git","clone_url":"https://github.com/iangelov/swagger-editor.git","svn_url":"https://github.com/iangelov/swagger-editor","homepage":"http://editor.swagger.io","size":104344,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"4f1bd208e5af1e5810c4d7360d4fc2ac11a2069d","user":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars0.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":19390712,"name":"swagger-editor","full_name":"swagger-api/swagger-editor","owner":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars0.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-editor","description":"Swagger Editor","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-editor","forks_url":"https://api.github.com/repos/swagger-api/swagger-editor/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-editor/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-editor/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-editor/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-editor/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-editor/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-editor/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-editor/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-editor/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-editor/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-editor/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-editor/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-editor/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-editor/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-editor/releases{/id}","deployments_url":"https://api.github.com/repos/swagger-api/swagger-editor/deployments","created_at":"2014-05-02T22:47:10Z","updated_at":"2017-06-08T09:46:07Z","pushed_at":"2017-06-06T17:50:44Z","git_url":"git://github.com/swagger-api/swagger-editor.git","ssh_url":"git@github.com:swagger-api/swagger-editor.git","clone_url":"https://github.com/swagger-api/swagger-editor.git","svn_url":"https://github.com/swagger-api/swagger-editor","homepage":"http://editor.swagger.io","size":123320,"stargazers_count":2391,"watchers_count":2391,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":786,"mirror_url":null,"open_issues_count":161,"forks":786,"open_issues":161,"watchers":2391,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/1066"},"html":{"href":"https://github.com/swagger-api/swagger-editor/pull/1066"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1066"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1066/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/1066/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/pulls/1066/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-editor/statuses/f3e7b0e7baa5a6efc3e7039b5bc23835241d4344"}},"merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":3,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"webron"}}