<div>
                    +1 or -1. Concerns? Perl is handy, but I don't use it. :)
                </div>
                <div><div><br></div><div><br></div><div><div>--&nbsp;</div><div>"The measure of a man is what he does with power" - Plato</div><div>-</div><div>@abstractj</div><div>-</div><div>Volenti Nihil Difficile</div></div></div>
                 
                <p style="color: #A0A0A8;">On Monday, January 14, 2013 at 5:05 PM, Matthias Wessendorf wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><br><br><div>On Mon, Jan 14, 2013 at 8:00 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br><blockquote type="cite"><div>

                <div>
                    <div>Morning everybody.</div><div><br></div><div>Daniel has already implemented a lot of cool stuff on AeroGear controller for pagination. For this reason I created this Jira to see if the implementation matches our expectations on the client side (<a href="https://issues.jboss.org/browse/AEROGEAR-814" style="color:rgb(0,106,227)" target="_blank">https://issues.jboss.org/browse/AEROGEAR-814</a>).</div>
<div><br></div><div>For example, currently the headers are returning something like it:</div><div><br></div><div><div style="border:none;padding:0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">
<pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">HTTP<span style="font-weight:bold">/</span><span style="color:rgb(0,153,153)">1.1</span> <span style="color:rgb(0,153,153)">200</span> OK
Content<span style="font-weight:bold">-</span>Type<span style="font-weight:bold">:</span> application<span style="font-weight:bold">/</span>json;charset<span style="font-weight:bold">=</span>UTF<span style="font-weight:bold">-</span><span style="color:rgb(0,153,153)">8</span>
Content<span style="font-weight:bold">-</span>Length<span style="font-weight:bold">:</span> <span style="color:rgb(0,153,153)">160</span>
AG<span style="font-weight:bold">-</span>Paging<span style="font-weight:bold">-</span>Offset<span style="font-weight:bold">:</span> <span style="color:rgb(0,153,153)">0</span>
AG<span style="font-weight:bold">-</span>Paging<span style="font-weight:bold">-</span>Limit<span style="font-weight:bold">:</span> <span style="color:rgb(0,153,153)">4</span>
AG<span style="font-weight:bold">-</span>Paging<span style="font-weight:bold">-</span>Total<span style="font-weight:bold">:</span> <span style="color:rgb(0,153,153)">4</span>
AG<span style="font-weight:bold">-</span>Links<span style="font-weight:bold">-</span>Next<span style="font-weight:bold">:</span> cars<span style="font-weight:bold">?</span>offset<span style="font-weight:bold">=</span><span style="color:rgb(0,153,153)">1</span><span style="font-weight:bold">&amp;</span>limit<span style="font-weight:bold">=</span><span style="color:rgb(0,153,153)">4</span>
AG<span style="font-weight:bold">-</span>Links<span style="font-weight:bold">-</span>Last<span style="font-weight:bold">:</span> cars<span style="font-weight:bold">?</span>offset<span style="font-weight:bold">=</span><span style="color:rgb(0,153,153)">3</span><span style="font-weight:bold">&amp;</span>limit<span style="font-weight:bold">=</span><span style="color:rgb(0,153,153)">4</span>
[
  {<span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Green"</span>,<span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Audi"</span>,<span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">1</span>},
  {<span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"White"</span>,<span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Audi"</span>,<span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">2</span>},
  {<span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Black"</span>,<span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Audi"</span>,<span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">3</span>},
  {<span style="color:rgb(221,17,68)">"color"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"Black"</span>,<span style="color:rgb(221,17,68)">"brand"</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">"BMW"</span>,<span style="color:rgb(221,17,68)">"id"</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">4</span>}
]
</pre></div><h4 style="margin:20px 0px 10px;padding:0px;font-size:16px;font-family:Helvetica,arial,freesans,clean,sans-serif"><a name="13c3a700e1c0660f_getting-the-next-page-of-cars" href="https://gist.github.com/4500336#getting-the-next-page-of-cars" style="color:rgb(65,131,196);text-decoration:initial;display:block;padding-left:30px" target="_blank"></a></h4>
</div><div><br></div><div>Question, do we really need&nbsp;<span style="background-color:rgb(248,248,248);font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px">AG</span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px">Links</span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px">Next and&nbsp;</span><span style="background-color:rgb(248,248,248);font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px">AG</span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px">Links</span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,'Liberation Mono',Courier,monospace;line-height:19px">Last.&nbsp;</span>If I know about the total and I have the fields limit and offset, looks like 'Next' and 'Last' are useless.</div>
</div></div></blockquote><div><br></div><div><br></div><div>Hrm - they look pretty handy</div><div><br></div><div>-M</div><div><br></div><div><br></div><div>&nbsp;</div><blockquote type="cite"><div>
<div><div> Am I wrong? I was wondering about something like this&nbsp;<a href="http://www.redmine.org/projects/redmine/wiki/Rest_api#Collection-resources-and-pagination" style="color:rgb(0,106,227)" target="_blank">http://www.redmine.org/projects/redmine/wiki/Rest_api#Collection-resources-and-pagination</a></div>
<span><font color="#888888">
                </font></span></div><span><font color="#888888">
                <div><div><br></div><div><br></div><div><div>--&nbsp;</div><div>"The measure of a man is what he does with power" - Plato</div><div>-</div><div>@abstractj</div><div>-</div><div>Volenti Nihil Difficile</div>
</div></div>
            </font></span><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>
<br></div></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><div>_______________________________________________</div><div>aerogear-dev mailing list</div><div><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></div><div><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>