New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Parameters with enableUrlTemplating set to true #1484
Comments
Are you using this dependency |
I thought I was, but apparently I'm not. What repository should I use for that? I'm using gradle. |
0.9.6 is available in both maven central and jcenter. However 0.9.7 is only available as of now on jcenter. |
In any case I have 0.9.6 working, However, now when I load localhost:8080/swagger-ui.html I see the navbar on the top with no data. |
😫 I just remembered, 0.9.6 will not work, you'll need to use 0.9.7. It takes a few hours to sync to maven central but if you include |
Ahh okay. It doesn't seem to be available on jcenter for me just yet. 0.9.6 seems to be the last version. https://jcenter.bintray.com/io/springfox/springfox-swagger-ui-rfc6570/ |
Yeah there seems to be a hiccup. Switched the artifacts group id from io.springfox to io.springfox.ui. Will update this thread when that is fixed |
Ok it should be available now |
That works great! Thank you very much. |
@dilipkrish I have the same issue with springfox versions 2.7.0 and 2.8.0: With Me too, my maven can only resolve 0.9.6 but not 0.9.7. Could you please publish 0.9.7 in common repos? It should be made available here: https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui-rfc6570 |
@dilipkrish It changed location and I found 0.9.7 and 1.0.0 here: https://mvnrepository.com/artifact/io.springfox.ui/springfox-swagger-ui-rfc6570 |
@dilipkrish With springfox version 2.7.0 or 2.8.0 and springfox-swagger-ui-rfc6570 version 1.0.0, it seems to work and swagger ui produces GET requests like: But unfortunately, I had to disable the |
@thomaszbz you can use it with the latest springfox versions I believe 2.6+ atleast. |
@dilipkrish I am using springfox and swagger-ui of version 2.9.2. I needed the support of RFC6570 in the swagger-ui version 2.9.2. It would be great if RFC6570 support can be provided in swagger-ui 2.9.2 version also rather than in swagger-ui-rfc6570 1.0.0. |
Is |
Fill details of my issue can be seen at : [http://stackoverflow.com/questions/39439214/swagger-param-documentation]
I have also read the closed issue at [https://github.com//issues/986]
My dilemma is that I need enableUrlTemplating set to true in order to have documentation on similar routes/maps that are only distinguished by certain query parameters (/students/{id}?age=20 and /students{id}?age=20&gender=male). I also can't stand seeing the swagger ui showing url/students{id}{?age}?age=20 and it obviously doesn't work either.
Is there any work around for presenting this correctly in the UI?
The text was updated successfully, but these errors were encountered: