Re: Unable to infer base url.
That looks like a very old version of swagger-ui. Please try the latest. From: on behalf of Anand Mishra Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Thursday, April 19, 2018 at 01:39 To: Swagger Subject: Unable to infer base url. When i am running swagger-ui , i am getting a popup which shows following error: Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually: -- 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 swagger-swaggersocket+unsubscr...@googlegroups.com. 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Unable to infer base url.
Hi Ron, Can you please tell me which version i need to use. currently i am using the following : io.springfox springfox-swagger2 2.7.0 compile io.springfox springfox-swagger-ui 2.7.0 compile On Wednesday, May 2, 2018 at 12:51:25 AM UTC+5:30, Ron wrote: > > That looks like a very old version of swagger-ui. Please try the latest. > > > > > > > > *From: *> on behalf of Anand > Mishra > > *Reply-To: *"swagger-sw...@googlegroups.com " < > swagger-sw...@googlegroups.com > > *Date: *Thursday, April 19, 2018 at 01:39 > *To: *Swagger > > *Subject: *Unable to infer base url. > > > > When i am running swagger-ui , i am getting a popup which shows following > error: > > Unable to infer base url. This is common when using dynamic servlet > registration or when the API is behind an API Gateway. The base url is the > root of where all the swagger resources are served. For e.g. if the api is > available at http://example.org/api/v2/api-docs then the base url is > http://example.org/api/. Please enter the location manually: > > -- > 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 swagger-swaggersocket+unsubscr...@googlegroups.com . > 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Unable to infer base url.
Hi Ron, One more thing i have used the following code then popup remove but apis are not giving response: import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; @Configuration public class WebMvcConfigure extends WebMvcConfigurItionSupport{ @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/webjars/**") .addResourceLocations("classpath:/META-INF/resources/webjars/"); registry.addResourceHandler("/swagger-ui.html") .addResourceLocations("classpath:/META-INF/resources/"); } } On Thursday, April 19, 2018 at 1:09:19 PM UTC+5:30, Anand Mishra wrote: > > When i am running swagger-ui , i am getting a popup which shows following > error: > > Unable to infer base url. This is common when using dynamic servlet > registration or when the API is behind an API Gateway. The base url is the > root of where all the swagger resources are served. For e.g. if the api is > available at http://example.org/api/v2/api-docs then the base url is > http://example.org/api/. Please enter the location manually: > > > -- 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Unable to infer base url.
Springfox is not one of our projects. Please check the project’s documentation for the latest dependencies and use. From: on behalf of Anand Mishra Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Friday, May 11, 2018 at 18:42 To: Swagger Subject: Re: Unable to infer base url. Hi Ron, One more thing i have used the following code then popup remove but apis are not giving response: import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; @Configuration public class WebMvcConfigure extends WebMvcConfigurItionSupport{ @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/webjars/**") .addResourceLocations("classpath:/META-INF/resources/webjars/"); registry.addResourceHandler("/swagger-ui.html") .addResourceLocations("classpath:/META-INF/resources/"); } } On Thursday, April 19, 2018 at 1:09:19 PM UTC+5:30, Anand Mishra wrote: When i am running swagger-ui , i am getting a popup which shows following error: Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually: -- 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 swagger-swaggersocket+unsubscr...@googlegroups.com. 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.