Skip to content
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

Spike automated rest documentation #11

Open
binkley opened this issue Dec 15, 2016 · 2 comments
Open

Spike automated rest documentation #11

binkley opened this issue Dec 15, 2016 · 2 comments
Labels

Comments

@binkley
Copy link
Owner

binkley commented Dec 15, 2016

Looking through http://info.michael-simons.eu/2016/04/17/8-new-features-youll-get-with-spring-boot-1-4/, see if automated rest docs makes sense.

@binkley
Copy link
Owner Author

binkley commented Dec 15, 2016

There may be a dependency version mismatch for spring restdocs mvc (1.1.2) and using Spring 5 (5.0.0.M3):

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.06 sec <<< FAILURE! - in hm.binkley.labs.ApplicationTest
shouldRespondCheerfully()  Time elapsed: 0.125 sec  <<< FAILURE!
java.lang.NoSuchMethodError: org.springframework.http.MediaType.getCharSet()Ljava/nio/charset/Charset;
        at hm.binkley.labs.ApplicationTest.shouldRespondCheerfully(ApplicationTest.kt:25)

@binkley
Copy link
Owner Author

binkley commented Jan 25, 2017

http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api

Problem: SpringFox is not presently working with Spring 5 (missing class, see springfox/springfox#1644). When spiked using Spring 4 and deleting tests (which use JUnit 5 and need Spring 5), nice things happen at http://localhost:8080/swagger-ui.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant