You are right. I added proxy at browser. Thanks.
On Thursday, August 4, 2016 at 5:54:23 AM UTC+5:30, Ron wrote: > > I’m a bit confused. Since this is an intranet and you need to use a proxy > to access anything outside (from the sound of it) – don’t you just set your > proxy in your browser and/or OS to allow access to the internet in general? > > > > > > > > > > *From: *<[email protected] <javascript:>> on behalf of One > Solution <[email protected] <javascript:>> > *Reply-To: *"[email protected] <javascript:>" < > [email protected] <javascript:>> > *Date: *Wednesday, 20 July 2016 at 06:02 > *To: *Swagger <[email protected] <javascript:>> > *Subject: *Re: How to add Proxy host and port to make Swagger Calls > > > > Hi Ron, > > > > Let me explain with examples. > > Say, Our domain is mydomain.com > > We dynamically change the API host name (say dynamicdomain.com) by using > setHost('dynamicdomain.com'). > > As mydomain.com is not having internet connectivity to access > dynamicdomain.com directly, we need to use proxydomain.com and proxyport > for internet connectivity. > > When I tried setHost('proxydomain.com:proxyport'), it is replacing host > name in swagger json file with proxydomain.com:proxyport, hence it is not > making call to dynamicdomain.com > > But what I'm looking for is to add proxydomain.com and proxyport for > connectivity between mydomain.com and dynamicdomain.com > > > > If setHost() can be used to change host name as well as to set proxy, > please provide me the syntax. > > > > Thanks in advance! > > > > On Tuesday, July 19, 2016 at 3:43:07 AM UTC+5:30, Ron wrote: > > You’d use the setHost to run the calls against the proxy, not the other > way around. > > > > > > > > *From: *<[email protected]> on behalf of One Solution < > [email protected]> > *Reply-To: *"[email protected]" < > [email protected]> > *Date: *Saturday, 16 July 2016 at 23:29 > *To: *Swagger <[email protected]> > *Subject: *Re: How to add Proxy host and port to make Swagger Calls > > > > Hi Ron, > > > Yes I am asking about swagger-ui. > Our API calls are hosted at example.com but our server can't access > example.com directly, it has to access through proxy > by using swaggerUi.api.setHost(...) I can change the API call host i.e > example.com right? > If yes my question is how to tell swagger UI to use proxy to make API call > hosted at example.com through proxy(proxy host and proxy port)..! > > > Thanks > > > > On Friday, July 15, 2016 at 10:52:51 PM UTC+5:30, Ron wrote: > > Assuming you’re asking about swagger-ui, you can use > swaggerUi.api.setHost(...) to change the host of the API calls. > > > > > > > > *From: *<[email protected]> on behalf of One Solution < > [email protected]> > *Reply-To: *"[email protected]" < > [email protected]> > *Date: *Friday, 15 July 2016 at 09:37 > *To: *Swagger <[email protected]> > *Subject: *How to add Proxy host and port to make Swagger Calls > > > > Hello, > > > > Our server is not accessing direct internet thus using a proxy host/IP and > port to access API. > > > > Please help me to add proxy host and port for every swagger try it out > calls... > > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
