Why does springfox-swagger2 UI tell me “Unable to infer base url.”
I was able to resolve the issue by adding SpringBootApplication with annotation – as suggested by Mark : @EnableSwagger2
I was able to resolve the issue by adding SpringBootApplication with annotation – as suggested by Mark : @EnableSwagger2
You can restrict the request handler selector to scan only the package of your project: return new Docket( DocumentationType.SWAGGER_2) .select() .apis( RequestHandlerSelectors.basePackage( “your package” ) ) …
I am guessing “http://MYIP/swagger/docs/v1” is not publicly accessible. By default swagger ui uses an online validator: online.swagger.io. If it cannot access your swagger url then you will see that error message. Possible solutions: Disable validation: config.EnableSwagger().EnableSwaggerUi(c => c.DisableValidator()); Make your site publicly accessible Host the validator locally: You can get the validator from: https://github.com/swagger-api/validator-badge#running-locally You … Read more
Yes, there are a few of them. ReDoc [Article on swagger.io] [GitHub] [demo] – Reinvented OpenAPI/Swagger-generated API Reference Documentation (I’m the author) OpenAPI GUI [GitHub] [demo] – GUI / visual editor for creating and editing OpenApi / Swagger definitions (has OpenAPI 3 support) Responsive Fork of SwaggerUI [GitHub] [demo] SwaggerUI-Angular [GitHub] [demo] – An angularJS … Read more