I&#39;m not sure to understand exactly this part :<div><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;background-color:rgb(255,255,255)">
<div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="n">param</span><span class="o" style="font-weight:bold">(</span><span class="s" style="color:rgb(221,17,68)">&quot;name&quot;</span><span class="o" style="font-weight:bold">).</span><span class="na" style="line-height:1.4;color:rgb(0,128,128)">offset</span><span class="o" style="line-height:1.4;font-weight:bold">(</span><span class="n" style="line-height:1.4">offset</span><span class="o" style="line-height:1.4;font-weight:bold">).</span><span class="na" style="line-height:1.4;color:rgb(0,128,128)">limit</span><span class="o" style="line-height:1.4;font-weight:bold">(</span><span class="n" style="line-height:1.4">limit</span><span class="o" style="line-height:1.4;font-weight:bold">)</span><span class="o" style="line-height:1.4;font-weight:bold">.</span><span class="na" style="line-height:1.4;color:rgb(0,128,128)">total</span><span class="o" style="line-height:1.4;font-weight:bold">(</span><span class="n" style="line-height:1.4">total</span><span class="o" style="line-height:1.4;font-weight:bold">))</span></div>
<div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><br></div><div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><b>param.offset() &gt;&gt; helper method to extra directly the offset param ? </b></div>
<div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><b><br></b></div><div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<b>parma.offset(offset) &gt;&gt; Is the argument an attribute of the method / class defining a route() ? Does that mean we should define, if needed, for each route specific offset / limit attributes ?</b></div><div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<b><br></b></div><div class="line" id="file-routes-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><b> </b></div></pre><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 2:53 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi slackers, after some discussion with @danbev we ended up with a middle term for 0.1 version on pagination (**Controller only**). Dan suggested a callback method to enable us to inform the number of records on Routes, which is fair enough.<br>

<br>
Suggestion -&gt;&gt;&gt;&gt;&gt; <a href="https://gist.github.com/a167f34408281527e7ee" target="_blank">https://gist.github.com/a167f34408281527e7ee</a><br>
<br>
@qmx also proposed to extend Controller via CDI to the further releases.<br>
<br>
<br>
And you wdyt?<br>
<br>
<br>
--<br>
&quot;The measure of a man is what he does with power&quot; - Plato<br>
-<br>
@abstractj<br>
-<br>
Volenti Nihil Difficile<br>
<div class="im"><br>
<br>
<br>
On Wednesday, January 16, 2013 at 1:19 PM, Daniel Bevenius wrote:<br>
<br>
&gt; &gt; Is OffsetPagedResponse a class that implements ResponseHeaders ?<br>
&gt;<br>
&gt; At the moment it is. We are still working on the server side, and will probably make this an interface.<br>
&gt;<br>
&gt; &gt; About the name maybe just PagedResponse instead of OffsetPagedResponse ?<br>
&gt; Yep, that sounds better.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; /Dan<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; On 16 January 2013 16:12, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a> (mailto:<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>)&gt; wrote:<br>
&gt; &gt; Is OffsetPagedResponse a class that implements ResponseHeaders ? About the name maybe just PagedResponse instead of OffsetPagedResponse ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
</div><div class="im">&gt; &gt; On Wed, Jan 16, 2013 at 3:45 PM, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; Sorry about the spacing of code in my last post, you can see the source here:<br>
&gt; &gt; &gt; <a href="https://github.com/danbev/aerogear-controller-demo/blob/AEROGEAR-795-paging-demo/src/main/java/org/jboss/aerogear/controller/demo/Cars.java#L82" target="_blank">https://github.com/danbev/aerogear-controller-demo/blob/AEROGEAR-795-paging-demo/src/main/java/org/jboss/aerogear/controller/demo/Cars.java#L82</a><br>

&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; On 16 January 2013 15:43, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; &gt; I&#39;m trying to find an easy way for doing this and wondering what people things about something like this:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; public OffsetPagedResponse findCarsByBrand(final String offsetParam, final String limitParam) {<br>
&gt; &gt; &gt; &gt; final int offset = Integer.valueOf(offsetParam);<br>
&gt; &gt; &gt; &gt; final int limit = Integer.valueOf(limitParam);<br>
&gt; &gt; &gt; &gt; final int total = getCarsTotal();<br>
&gt; &gt; &gt; &gt; final List&lt;Car&gt; cars = getCars(offset, limit);<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; return Pagination.offset(offset)<br>
&gt; &gt; &gt; &gt; .limit(limit)<br>
&gt; &gt; &gt; &gt; .total(total)<br>
&gt; &gt; &gt; &gt; .resourcePath(&quot;cars&quot;)<br>
&gt; &gt; &gt; &gt; .headersPrefix(&quot;Demo-&quot;)<br>
&gt; &gt; &gt; &gt; .response(cars);<br>
&gt; &gt; &gt; &gt; }<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; &gt; On 14 January 2013 14:41, Douglas Campos &lt;<a href="mailto:qmx@qmx.me">qmx@qmx.me</a> (mailto:<a href="mailto:qmx@qmx.me">qmx@qmx.me</a>)&gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; Well, from reading the PR I really think this should be part of the controller - something that decorates the return and sets appropriate headers.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; a very high level usage example would be something like this:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; public List&lt;Car&gt; findCarsByFoo(Car example) {<br>
&gt; &gt; &gt; &gt; &gt; List&lt;Car&gt; cars = // does the magic<br>
&gt; &gt; &gt; &gt; &gt; return paginate(cars); // static helper that wraps this list on a lightweight wrapper,<br>
&gt; &gt; &gt; &gt; &gt; // that triggers the behavior<br>
&gt; &gt; &gt; &gt; &gt; }<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Thoughts?<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Matzew already put this on our meeting agenda for today, but feel free to send suggestions here :)<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; -- qmx<br>
&gt; &gt; &gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; &gt; &gt; On 14/01/2013, at 07:30, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; if we add a dependency on the params into our client library, we pretty much build against a &quot;demo API&quot;.<br>
&gt; &gt; &gt; &gt; &gt; &gt; There should be no dependencies in the client APIs to these params or headers. This is up the the implementation of the target Route and the params names, the response headers could be anything they user wants. This is just an example where we try to provide a good way of doing this. At least this is my view of it.<br>

&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; /Dan<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; &gt; &gt; &gt; On 14 January 2013 10:28, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a> (mailto:<a href="mailto:matzew@apache.org">matzew@apache.org</a>)&gt; wrote:<br>

&gt; &gt; &gt; &gt; &gt; &gt; Looking at the PR for the demo ([1]) ,I am a bit surprised that<br>
&gt; &gt; &gt; &gt; &gt; &gt; classes like &quot;Links.java&quot; or &quot;Metadata.java&quot; are part of the demo<br>
&gt; &gt; &gt; &gt; &gt; &gt; code.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; I thought that the metadata/header informations on the response, like:<br>
&gt; &gt; &gt; &gt; &gt; &gt; ```<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Offset: 1<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Limit: 4<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Total: 4<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Links-First: cars?offset=0&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Previous: cars?offset=0&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Next: cars?offset=2&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Last: cars?offset=3&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; ```<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; are applied by the framework. Of course, the &quot;cars&quot; in there is app<br>
&gt; &gt; &gt; &gt; &gt; &gt; specific, but this information could be read out of the actual route<br>
&gt; &gt; &gt; &gt; &gt; &gt; (/cars).<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Not sure, but... if all the time we (end user) needs to (re)impl.<br>
&gt; &gt; &gt; &gt; &gt; &gt; these things... it could be a bit annoying.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; IMO the problem would be:<br>
&gt; &gt; &gt; &gt; &gt; &gt; - if we add a dependency on the params into our client libraries, we<br>
&gt; &gt; &gt; &gt; &gt; &gt; pretty much build against a &quot;demo API&quot;. Which is odd...<br>
&gt; &gt; &gt; &gt; &gt; &gt; I thought these &quot;metadata details&quot; are offered by the framework.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; -M<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; [1] <a href="https://github.com/aerogear/aerogear-controller-demo/pull/19" target="_blank">https://github.com/aerogear/aerogear-controller-demo/pull/19</a><br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; On Sun, Jan 13, 2013 at 12:09 PM, Daniel Bevenius<br>
</div><div><div class="h5">&gt; &gt; &gt; &gt; &gt; &gt; &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; &gt; &gt; &gt; &gt; I&#39;ve updated the demo and think I&#39;ve included all the requests.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; * Pre-populate the database upon deployment of demo.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; * Use &#39;offset/limit&#39; instead of &#39;page/perPage&#39;.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; * Use &#39;AG-&#39; prefix for headers.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Let me know if you are missing anything, or would like something done in a<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; different way.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Use case<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; The example is using /cars as the resource to interact with.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; The following route has been added to the demo:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; route()<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; .from(&quot;/cars&quot;)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; .on(RequestMethod.GET)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; .produces(MediaType.JSON)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; .to(Cars.class).get(param(&quot;offset&quot;, &quot;0&quot;), param(&quot;limit&quot;, &quot;-1&quot;));<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; From this we can see that there are two optional parameters, offset and<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; limit. If these are not specified all cars will be returned.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Getting a page of Cars<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; curl -i --header &quot;Accept: application/json&quot;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &quot;<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars?offset=0&amp;limit=4" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars?offset=0&amp;limit=4</a>&quot;<br>

&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; The request will return:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; HTTP/1.1 200 OK<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Content-Type: application/json;charset=UTF-8<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Content-Length: 160<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Offset: 0<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Limit: 4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Total: 4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Next: cars?offset=1&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Last: cars?offset=3&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; [<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Green&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:1},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;White&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:2},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Black&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:3},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Black&quot;,&quot;brand&quot;:&quot;BMW&quot;,&quot;id&quot;:4}<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; ]<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Getting the next page of Cars<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; To get the next page you can follow the next link:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; curl -i --header &quot;Accept: application/json&quot;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &quot;<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars?offset=1&amp;limit=4" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars?offset=1&amp;limit=4</a>&quot;<br>

&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; HTTP/1.1 200 OK<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Content-Type: application/json;charset=UTF-8<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Content-Length: 166<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Offset: 1<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Limit: 4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Paging-Total: 4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Links-First: cars?offset=0&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Previous: cars?offset=0&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Next: cars?offset=2&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; AG-Links-Last: cars?offset=3&amp;limit=4<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; [<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Green&quot;,&quot;brand&quot;:&quot;BMW&quot;,&quot;id&quot;:5},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Red&quot;,&quot;brand&quot;:&quot;Ferrari&quot;,&quot;id&quot;:6},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;White&quot;,&quot;brand&quot;:&quot;Ferrari&quot;,&quot;id&quot;:7},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Pink&quot;,&quot;brand&quot;:&quot;Ferrari&quot;,&quot;id&quot;:8}<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; ]<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Get all Cars<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; curl -i --header &quot;Accept: application/json&quot;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &quot;<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars</a>&quot;<br>

&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; This request will return:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; [<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Green&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:1},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;White&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:2},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Black&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:3},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Black&quot;,&quot;brand&quot;:&quot;BMW&quot;,&quot;id&quot;:4},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Green&quot;,&quot;brand&quot;:&quot;BMW&quot;,&quot;id&quot;:5},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Red&quot;,&quot;brand&quot;:&quot;Ferrari&quot;,&quot;id&quot;:6},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;White&quot;,&quot;brand&quot;:&quot;Ferrari&quot;,&quot;id&quot;:7},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Pink&quot;,&quot;brand&quot;:&quot;Ferrari&quot;,&quot;id&quot;:8},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;White&quot;,&quot;brand&quot;:&quot;Golf&quot;,&quot;id&quot;:15},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Brown&quot;,&quot;brand&quot;:&quot;Lada&quot;,&quot;id&quot;:16},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Orange&quot;,&quot;brand&quot;:&quot;Mazda&quot;,&quot;id&quot;:14},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Pink&quot;,&quot;brand&quot;:&quot;Mini&quot;,&quot;id&quot;:13},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Gray&quot;,&quot;brand&quot;:&quot;Nissan&quot;,&quot;id&quot;:11},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Yello&quot;,&quot;brand&quot;:&quot;Opel&quot;,&quot;id&quot;:10},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Blue&quot;,&quot;brand&quot;:&quot;Scoda&quot;,&quot;id&quot;:9},<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Red&quot;,&quot;brand&quot;:&quot;Volvo&quot;,&quot;id&quot;:12}<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; ]<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Get a single Car<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; curl -i --header &quot;Accept: application/json&quot;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &quot;<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars/1" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars/1</a>&quot;<br>

&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; The request will return:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; {&quot;color&quot;:&quot;Green&quot;,&quot;brand&quot;:&quot;Audi&quot;,&quot;id&quot;:1}<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
</div></div><div class="im">&gt; &gt; &gt; &gt; &gt; &gt; &gt; On 12 January 2013 11:08, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Great, lets go with &#39;AG-&#39; prefix then.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
</div>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On 11 January 2013 18:24, Douglas Campos &lt;<a href="mailto:qmx@qmx.me">qmx@qmx.me</a> (mailto:<a href="mailto:qmx@qmx.me">qmx@qmx.me</a>)&gt; wrote:<br>
<div class="im">&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On 11/01/2013, at 15:10, Kris Borchers &lt;<a href="mailto:kris@redhat.com">kris@redhat.com</a> (mailto:<a href="mailto:kris@redhat.com">kris@redhat.com</a>)&gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I guess what I meant is I&#39;m not specifically +1 for X- prefix but just<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; some sort of prefix in general. It just makes it easier for devs when<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; looking through headers to see what is being sent. Even something like AG-<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; or AeroGear- would be better IMO than no prefix.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; d&#39;oh, +1 - thought I&#39;ve typed it…<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; AG- looks nicer - less bandwidth ;)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; -- qmx<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>

<div class="im">&gt; &gt; &gt; &gt; &gt; &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; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&gt; &gt; &gt; &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; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; &gt; Matthias Wessendorf<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&gt; &gt; &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; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&gt; &gt; &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; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&gt; &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; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&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; aerogear-dev mailing list<br>
</div>&gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&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; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
</div>&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="HOEnZb"><div class="h5">&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>
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>
</div></div></blockquote></div><br></div>