--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
You will never be able to generate a good API definition from code without adding more to it.
The reason is simple – the descriptions are just not there.
You can actually use swagger-core to generate something without adding any annotations to your code.
That would still be lacking of descriptions and you can add that manually later.
If you want it to work at build time and not deployment time, you can look at the maven plugin - https://github.com/kongchen/swagger-maven-plugin.
For that you’d still want to add the annotations, but you won’t need to expose it at runtime.
We are not affiliated with that plugin, so won’t be able to provide support, but it should be good.
The other option is to not generate it from the code but use something like http://editor.swagger.io to manually write your API description.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
Hi David,
The short answer is – yes, you can do all that.
The longer version is slightly more complicated.
I’m not familiar with swagger-doclet – not with its quality, maintenance level, or even what version of the spec it produces (which is critical).
The use of Ant does pose challenges, however, as far as I know, you can run maven plugins from an Ant build.
Given the maturity of the tools, I really think that would be the best approach for you to explore.
From: <swagger-sw...@googlegroups.com> on behalf of David Blickstein <dab...@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Friday, 23 June 2017 at 11:21
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Generate Swagger specification from Java source code
Ron,
--
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.