spring-plugin-core:1.2.0 from 2015…
# spring
b
spring-plugin-core:1.2.0 from 2015…
s
SpringFox seems unmaintained, did anybody try https://github.com/OpenAPITools/openapi-generator?
m
Are you referring to this project? Github was 2 months ago. https://springfox.github.io/springfox/ If so, the openapi-generator is for a different thing, isn’t it? Isn’t Spring Fox for publishing a spec from annotations on the classes? Whereas openapi-generator is for generating code given a spec already. So the 2 approaches to only defining the API once. If you want to generate code given an api, then I can highly recommend the openapi-generator.
b
I'm using springfox to generate a swagger file for my orchid documentation (live api experimentation)
s
@Mike indeed
I am referring to that project yeah, the maintainer seems to have difficulties to release the long awaited 3.0
m
I haven’t been following spring fox as I use openapi generator because I start with the spec, and then just expose the spec file as a static resource.
f
@sdeleuze any idea if first class support for openapi has ever been considered?
s
First class support for this domain currently mostly focus on https://spring.io/projects/spring-restdocs which provides a great alternative answer, but I am puzzled to see the status of SpringFox. I will maybe try to reach the maintainer to see how we could help him.
m
Spring tends to focus on Annotation based definition of the API on the Controllers, hence Spring-Fox or spring-restdocs. OpenAPI-generator is focused on generating a Client or Server given an API. Spring is merely one of many potential targets of code. I’m not sure how Spring would incorporate it as it’s more of a build task.
s
b
Orchid builds an API playground from a swagger definition
so anything that builds a definition would work
s
Any link to Orchid ?
b
I like it, I can do pages of docs, integrate UML diagrams etc
s
Thanks I will have a look
m
And it ‘understands’ Dokka, so can publish your Dokka docs easily.
1