<br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 1:35 AM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@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 bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <div><br>
      On 01/14/2013 02:00 PM, Bruno Oliveira wrote:<br>
    </div>
    <blockquote type="cite">
      <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,&#39;Liberation Mono&#39;,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)">&quot;color&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;Green&quot;</span>,<span style="color:rgb(221,17,68)">&quot;brand&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;Audi&quot;</span>,<span style="color:rgb(221,17,68)">&quot;id&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">1</span>},
  {<span style="color:rgb(221,17,68)">&quot;color&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;White&quot;</span>,<span style="color:rgb(221,17,68)">&quot;brand&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;Audi&quot;</span>,<span style="color:rgb(221,17,68)">&quot;id&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">2</span>},
  {<span style="color:rgb(221,17,68)">&quot;color&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;Black&quot;</span>,<span style="color:rgb(221,17,68)">&quot;brand&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;Audi&quot;</span>,<span style="color:rgb(221,17,68)">&quot;id&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(0,153,153)">3</span>},
  {<span style="color:rgb(221,17,68)">&quot;color&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;Black&quot;</span>,<span style="color:rgb(221,17,68)">&quot;brand&quot;</span><span style="font-weight:bold">:</span><span style="color:rgb(221,17,68)">&quot;BMW&quot;</span>,<span style="color:rgb(221,17,68)">&quot;id&quot;</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="13c3ba2cfe2c2112_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 <span>AG</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px">Links</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px">Next and </span><span style="background-color:rgb(248,248,248);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px">AG</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px">Links</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px;font-weight:bold">-</span><span style="background-color:rgb(248,248,248);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:19px">Last. </span>If I know about the total
          and I have the fields limit and offset, looks like &#39;Next&#39; and
          &#39;Last&#39; are useless. Am I wrong? I was wondering about
          something like this <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>

      </div>
      <div>
        <div><br>
        </div>
      </div>
    </blockquote></div></div>
      I like them because it makes my life easier :)<br></div></blockquote><div><br></div><div>exactly, quite handy</div><div><br></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 bgcolor="#FFFFFF" text="#000000">
    <blockquote type="cite"><div class="im">
      <div>
        <div><br>
        </div>
        <div>
          <div>-- </div>
          <div>&quot;The measure of a man is what he does with power&quot; - Plato</div>
          <div>-</div>
          <div>@abstractj</div>
          <div>-</div>
          <div>Volenti Nihil Difficile</div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div><div class="im"><pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
</pre>
    </div></blockquote>
    <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>
<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>