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
Migration from Swagger Spring MVC to Swagger Springfox 2.0.3 #1635
Conversation
- no more swagger-ui directory under webapp - no more swagger dependency in bower.json - version of the API in application.yml It fully works with maven + grunt. With gradle + gulp, it works with gradle (port 8080) however it does not work from gulp (port 3000) I tried to configure the proxy for /swagger-ui.html nut it does not seem to work. I'm not even sure it was working previously, I'll try. Re #1508
Thanks I'll try when I'll fix Travis CI failed check. |
Added few authorizations for SPringfox URLs (admin) and public for /webjars/. Re #1508
gulp is now working. I encountered issue #1639 which is not related to SpringFox. |
… into swagger_2_1508 Conflicts: app/templates/_gradle.properties Re #1508
Looks good to me!! |
@gmarziou it fails with the token-based authentication, so I can't merge it at the moment. |
I have never used token-based authentication but let me know if I can help. |
@gmarziou can you try to generate with the token-based option? |
I generated with the token-based option, I authenticated as admin, when I go to API doc page I get these 401 errors:
It's because the iframe does not have the token. |
@gmarziou this should be doable, as I'm doing it this in other parts of the apps (for the Gatling scripts, for example). Of course, this should be documented, etc, and as it's a bit late today, I'll merge this tomorrow. |
Migration from Swagger Spring MVC to Swagger Springfox 2.0.3
@jdubois, If i have an old version of jhipster i have to manually remove the swagger-ui directory under webapp. Right? Another question: Using Oauth authentication i see that in the class OAuth2ServerConfiguration probably are missing the following configurations ( but i'm not sure):
|
Yes this is correct. To test this, you can have a look at the requests in your browser console. |
It fully works with maven + grunt.
With gradle + gulp, it works with gradle (port 8080) however it does not work
with gulp (port 3000) I tried to configure the proxy for /swagger-ui.html nut it does not seem to work.
I'm not even sure it was working previously, I'll try.
Re #1508