Not able to see swagger-ui.html with SpringFox 3.0.0-SNAPSHOT library
prabhushrikant opened this issue · 6 comments
I am using springfox-integration-webmvc project and updated build.gradle to have springfox 3.0.0-SNAPSHOT dependencies
repositories {
mavenCentral()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
}
Project now builds and endpoints are working well however the swagger page never shows up at http://localhost:8080/swagger-ui.html , I don't see any error logged as well when I hit swagger-ui.html.
I see following error.
We are trying to get @example & @ExampleProperty annotations working in our swagger-ui.html, is it supported by SpringFox 2.10.5 or do I have to wait for 3.0.0 to be released this week?
I was able to get swagger up at location http://localhost:8080/swagger-ui/index.html on project springfox-integration-webmvc
I had to replace following dependencies in build.gradle
compile group: 'io.springfox', name: 'springfox-swagger2', version: '3.0.0-SNAPSHOT'
compile group: 'io.springfox', name: 'springfox-spring-webmvc', version: '3.0.0-SNAPSHOT'
compile group: 'io.springfox', name: 'springfox-spring-integration-webmvc', version: '3.0.0-SNAPSHOT'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '3.0.0-SNAPSHOT'
to
implementation "io.springfox:springfox-boot-starter:3.0.0-SNAPSHOT"
with couple of other changes e.g.
- add section
repositories {
mavenCentral()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
}
But still no luck with showing @example mentioned on controller in swagger ui.
@Example(@ExampleProperty(mediaType = "application/json", value = "{'gnarf': 'dragons'}")),
on swagger-ui.html
which continues to show
{
"gnarf": "string"
}
But it's a different issue than this hence closing.
Thanks for reporting back! Please create an issue on the main project for the example problem