<div dir="ltr">having it separate did not work out. We had that in the past.<div>Even today, where the source code comments is used, not every API changes is automatically catched (lack of updates on the documentation/comments).</div><div><br></div><div>However, since both live together (comments/doc and source), it is IMO less of a hassle to get things updated. </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 7, 2015 at 10:10 AM, Stefan Miklosovic <span dir="ltr">&lt;<a href="mailto:smikloso@redhat.com" target="_blank">smikloso@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well,<br>
<br>
we are on the crossroad guys :) Even such simple task as generating<br>
API automatically can be done by different means.<br>
<br>
I do not mind either approach. If Idel is about to do it, feel free to<br>
do so. I do not know Miredot and I would personally stick to something<br>
proven and widely used, even it does not cover our need 100% and it is<br>
not all shiny and cool.<br>
<br>
I would personaly do simple Swagger YAML and I would not integrate it<br>
to sources directly. Having it separate has another advantage like you<br>
can move that YAML here and there plus you can design endpoints and<br>
you can share it with other people before you even start to implement<br>
it.<br>
<br>
>From my point of view in work, this is really marginal issue for me<br>
right now. I just proposed the idea.<br>
<br>
Regards<br>
<div><div class="h5"><br>
On Tue, Apr 7, 2015 at 9:54 AM, Lukáš Fryč &lt;<a href="mailto:lukas.fryc@gmail.com">lukas.fryc@gmail.com</a>&gt; wrote:<br>
&gt; I agree with Idel that DRY approach in Miredot&#39;s case seems more appealing.<br>
&gt;<br>
&gt; They offer basic docs generation in Free version, but also Pro version for<br>
&gt; open-source projects under conditions that Aerogear meets [1].<br>
&gt;<br>
&gt; ~ Lukas<br>
&gt;<br>
&gt; [1] <a href="http://www.miredot.com/price/" target="_blank">http://www.miredot.com/price/</a><br>
&gt;<br>
&gt; ne 5. 4. 2015 v 20:00 odesílatel Idel Pivnitskiy &lt;<a href="mailto:idel.pivnitskiy@gmail.com">idel.pivnitskiy@gmail.com</a>&gt;<br>
&gt; napsal:<br>
&gt;<br>
&gt;&gt; For JAX-RS I prefer use MireDot as a REST API doc generator<br>
&gt;&gt; <a href="http://www.miredot.com/" target="_blank">http://www.miredot.com/</a><br>
&gt;&gt;<br>
&gt;&gt; With MireDot you do not need to use additional annotations, like @Api:<br>
&gt;&gt;<br>
&gt;&gt; @Path(&quot;/pet&quot;)<br>
&gt;&gt; @Api(value = &quot;/pet&quot;, description = &quot;Operations about pets&quot;)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; It will parse your JAX-RS annotation and pure javadoc:<br>
&gt;&gt;<br>
&gt;&gt; /**<br>
&gt;&gt; * Operations about pets<br>
&gt;&gt; */<br>
&gt;&gt; @Path(&quot;/pet&quot;)<br>
&gt;&gt;<br>
&gt;&gt; and generate beautiful and user friendly documentation, like this:<br>
&gt;&gt; <a href="http://www.miredot.com/exampledocs/" target="_blank">http://www.miredot.com/exampledocs/</a><br>
&gt;&gt; Swagger example: <a href="http://petstore.swagger.io/" target="_blank">http://petstore.swagger.io/</a><br>
&gt;&gt;<br>
&gt;&gt; And MireDot is free for open source projects!<br>
&gt;&gt;<br>
&gt;&gt; Think about this alternative for Swagger. I&#39;m able to prepare Pull Request<br>
&gt;&gt; for UPS next week.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2015-04-04 9:43 GMT+03:00 Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, Apr 3, 2015 at 10:27 PM, Heiko W.Rupp &lt;<a href="mailto:hrupp@redhat.com">hrupp@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 3 Apr 2015, at 18:53, Andrea Vibelli wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt; we are using it in Project Newcastle with annotations on the<br>
&gt;&gt;&gt;&gt; &gt; endpoints, and<br>
&gt;&gt;&gt;&gt; &gt; it&#39;s really handy.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; All the JBoss ON 3.2+ and RHQ REST-docs are generated from JAX-RS +<br>
&gt;&gt;&gt;&gt; Swagger annotations.<br>
&gt;&gt;&gt;&gt; In Hawkular we are basically doing the same, but with a different<br>
&gt;&gt;&gt;&gt; annotation processor.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; +1000<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; we are, atm, doing similar:<br>
&gt;&gt;&gt; source<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/sender/PushNotificationSenderEndpoint.java#L99-L102" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/sender/PushNotificationSenderEndpoint.java#L99-L102</a><br>
&gt;&gt;&gt; result:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/sender/index.html#POST" target="_blank">https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/sender/index.html#POST</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; but the jaxrs doclet does not work w/ JDK8 - something has to change here<br>
&gt;&gt;&gt; ;-)<br>
&gt;&gt;&gt; So, I am all for using Swagger annotations on the code to generate the<br>
&gt;&gt;&gt; HTML docs :-)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Greetings,<br>
&gt;&gt;&gt; Matthias<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I personally think the best is really to have the annotations in the<br>
&gt;&gt;&gt;&gt; source and not trying<br>
&gt;&gt;&gt;&gt; to update a separate .yml file, as the latter usually is much easier<br>
&gt;&gt;&gt;&gt; forgotten.<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Matthias Wessendorf<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt;&gt;&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt;&gt;&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Idel Pivnitskiy<br>
&gt;&gt; E-mail: <a href="mailto:Idel.Pivnitskiy@gmail.com">Idel.Pivnitskiy@gmail.com</a><br>
&gt;&gt; Twitter: @idelpivnitskiy<br>
&gt;&gt; GitHub: @idelpivnitskiy<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
<br>
--<br>
</div></div><span class="">Stefan Miklosovic<br>
Red Hat Brno - JBoss Mobile Platform<br>
<br>
</span>e-mail: <a href="mailto:smikloso@redhat.com">smikloso@redhat.com</a><br>
irc: smikloso<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>