Righ, Paging bits will also be scaffolded in the near future !<br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 3:50 PM, Kris Borchers <span dir="ltr">&lt;<a href="mailto:kris@redhat.com" target="_blank">kris@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"><div style="word-wrap:break-word"><br><div><div><div class="h5"><div>On Apr 2, 2013, at 8:45 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 3:41 PM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div>On Tue, Apr 2, 2013 at 3:30 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Howdy,</div><div><br></div><div>I really like the work on AG Scaffolding!</div><div><br></div><div><br></div><div>A few questions:</div><div><br></div><div>1) Is this available on an &#39;official&#39; page ? </div>



<div><a href="https://gist.github.com/sebastienblanc/5222680" target="_blank">https://gist.github.com/sebastienblanc/5222680</a></div></div></blockquote><div><br></div></div><div>Not yet, I think we must find a place for it on <a href="http://aerogear.org/" target="_blank">aerogear.org</a>, suggestions alre welcome ! </div>

<div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>2) The generated JS controllers are Angular &#39;controllers&#39; that use AeroGear for HTTP communication ?</div>


</div></blockquote><div><br></div></div><div>Amgular&#39;s controllers uses the Aerogear generated DataService JS file (which contains/defines  the pipes/datastore)</div></div></blockquote><div><br></div><div>so, basically yes :) </div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">
<div><br></div><div><br></div><div>3) The generated Java/REST Endpoints are vanilla JAX-RS endpoints, but the AG Controller (Routes) does the actual</div><div>HTTP routing, not the JAX-RS impl. right ? </div></div></blockquote>


<div><br></div></div><div>Right, the &quot;ag controller&quot; scaffolding branch scaffolds a Controller Route and &quot;by pass&quot; the JAX-RS endpoints generated by the REST forge plugin. </div></div></blockquote><div>

<br></div><div>... by leveraging the JAX-RS Response class, for instance ?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote">

<div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div>
<div>So... if 3) the above is right....</div><div><br></div><div>3a)  is it basically a dispatch ? </div></div></blockquote><div><br></div></div><div>It&#39;s AG Controller magic, just drop the jar and defines a route, any matches will use the Route defined in the controller.</div>

</div></blockquote><div><br></div><div>ok - you anwsered above. Under the hood, it does a by-pass</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">3b) what is the benefit of using the Controler/Routes in this example.</div></blockquote>

<div><br></div></div><div>* Show the basic use of the Controller / Promote our own stuff</div><div>* IMO Controller has a fluent API which make it really a breeze to define REST endpoints,</div><div>* When Security scaffold will be released (soon ! soon!) ,it will be easy to integrate into the Routes and again show the power of the controller.</div>


<div>* In the future, show how we can easily connect to other services (Dan&#39;s Camel samples)</div></div></blockquote><div><br></div><div>+1 all valid point</div></div></div></div></blockquote><div><br></div></div></div>
Also, it makes it easy to paginate the endpoints, right? Eventually this will be part of scaffolding but it was a couple of simple changes for me to add pagination to the scaffolded code.<div><div class="h5"><br><blockquote type="cite">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div><br></div><div>
Yes, looks good !</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">
<div><br></div><div><br></div><div>
Thanks</div></div></blockquote><div><br></div><div>Thanks for the feedback </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><span><font color="#888888"><div>


<br></div><div><br></div>-- <br>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>
</font></span></div>
<br></div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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><br></blockquote></div><br>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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></blockquote>
</div></div></div><br></div><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><br></blockquote></div><br>