deeptigarg
8 years agoNew Contributor
Not able to execute API from SwaggerHub
Hi, I am new to SwaggerHub and having trouble accessing the API that I created using an existing swagger.yaml file on SwaggerHub. I have specified the host name as my machine name (which is p...
- 8 years ago
Hi! SwaggerHub executes requests through a proxy on our server so we can deal with the challenges of CORS, etc. So the request actually does go through our server.
That means that if your server is inside your firewall (i.e. unreachable from the internet), you will _not_ be able to call it directly through SwaggerHub. We will be adding a feature to disable the proxy (or use a custom one) but that's not yet available.
- 8 years ago
Hi, you can certainly call your API if it's external. Just set the `host` and `basePath` fields and it will call those external services. Please post back with any questions!