<div dir="ltr">&gt;<span style="font-family:arial,sans-serif;font-size:13px">perhaps I don&#39;t get it - but... our backend uses the headers for the </span><span style="font-family:arial,sans-serif;font-size:13px">web linking, AG-Limit etc, right?</span><div style>
<span style="font-family:arial,sans-serif;font-size:13px">Yeah, you are correct our backend is using headers for web linking and total. We discussed [1] in the past the option to have the same information in the body of the response instead of as HTTP headers, for example an Object in a JSON response. The location of this information could then be specified by the client to tell the server where it should place the metadata. </span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">&gt;I think, it&#39;s OK to NOT send that limit/offset overhead to someone</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">&gt;that knows about it already. That&#39;s what you are saying, right ?</span><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style>
<span style="font-family:arial,sans-serif;font-size:13px">Yep, so we would just return the &#39;AG-Total&#39; in this case. </span></div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div style><font face="arial, sans-serif">[1] <a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Paging-Demo-td1173.html">http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Paging-Demo-td1173.html</a></font><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 January 2013 08:36, 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 class="im">On Thu, Jan 17, 2013 at 8:05 AM, Daniel Bevenius<br>
&lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;ve been reading the client API spec and noticed that I completely forgot<br>
&gt; the parameter &#39;metadataLocation&#39; that an endpoint could optionally accept,<br>
&gt; which indicates if the information related to paging should be returned as<br>
&gt; part of the data, or as HTTP Headers.<br>
&gt; I&#39;ll update the server side spec if no one objects.<br>
<br>
</div>perhaps I don&#39;t get it - but... our backend uses the headers for the<br>
web linking, AG-Limit etc, right?<br>
<br>
So why should we include a &quot;location&quot; header? I understood it more as<br>
a &quot;generic&quot; client feature:<br>
- Tell the pipe where (haha :-)) to look (page/content VS header) for<br>
the &quot;next&quot;, &quot;previous&quot; etc information<br>
<div class="im"><br>
<br>
&gt; I also wanted to bring up that in the spec at the moment we have specified<br>
&gt; that we are only returning the &#39;total&#39;, and not the &#39;offset&#39; and &#39;limit&#39;.<br>
&gt; The reason for this being that the client sent the &#39;offset&#39; and &#39;limit&#39; and<br>
&gt; therefore already has this information. Does anyone have a different take on<br>
&gt; this?<br>
<br>
</div>I think, it&#39;s OK to NOT send that limit/offset overhead to someone<br>
that knows about it already. That&#39;s what you are saying, right ?<br>
<span class="HOEnZb"><font color="#888888"><br>
-M<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; thanks,<br>
&gt;<br>
&gt; /Dan<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 15 January 2013 19:44, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; +1 I&#39;ll start adding it tomorrow and keep it updated if no one objects.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 15 January 2013 19:42, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; +1<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, Jan 15, 2013 at 7:37 PM, Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>&gt;<br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; +1 Any additions?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I just wondering about include it at<br>
&gt;&gt;&gt;&gt; <a href="http://aerogear.org/docs/specs/aerogear-rest-api/" target="_blank">http://aerogear.org/docs/specs/aerogear-rest-api/</a>. Makes sense?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; &quot;The measure of a man is what he does with power&quot; - Plato<br>
&gt;&gt;&gt;&gt; -<br>
&gt;&gt;&gt;&gt; @abstractj<br>
&gt;&gt;&gt;&gt; -<br>
&gt;&gt;&gt;&gt; Volenti Nihil Difficile<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Tuesday, January 15, 2013 at 11:18 AM, Kris Borchers wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; This looks pretty good to me.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Jan 15, 2013, at 3:26 AM, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; we&#39;ve created the following gist[1] to specify our requirements for<br>
&gt;&gt;&gt;&gt; pagination. We can discuss this on the mailing list and then update the doc<br>
&gt;&gt;&gt;&gt; as we go along. This will later be turned into a page under the spec section<br>
&gt;&gt;&gt;&gt; of the site.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Nothing has been decide yet even if it might read like it has in the<br>
&gt;&gt;&gt;&gt; document.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; [1] <a href="https://gist.github.com/4537431" target="_blank">https://gist.github.com/4537431</a><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;&gt;<br>
&gt;&gt;&gt;&gt;<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;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<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;&gt;<br>
&gt;&gt;&gt;<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;&gt;<br>
&gt;&gt;<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>
&gt;<br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<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><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>