Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Support custom host and port for editor #219

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Support custom host and port for editor #219

merged 1 commit into from
Jun 11, 2015

Conversation

joostfarla
Copy link
Contributor

The Swagger editor (when using the Swagger CLI) is normally served from host "127.0.0.1" on a port which is randomly determined when the command is executed. This approach assumes that the browser is running on the same machine as the Swagger process.

In my case, I'm running Node.js and Swagger from within a Vagrant VM and Vagrant requires to define a set of specific ports which will be forwarded from the host (where the browser is running on) to the VM. So, to be able to access the editor from the browser, it is required to set a custom host and port to serve the Swagger editor from.

I've provided a PR including some tests.

This request is related to #210.

@theganyo
Copy link
Contributor

Looks good! Thanks, @joostfarla!

theganyo added a commit that referenced this pull request Jun 11, 2015
Support custom host and port for editor
@theganyo theganyo merged commit 1ad3c62 into swagger-api:master Jun 11, 2015
@joostfarla joostfarla deleted the vagrant branch June 12, 2015 08:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants