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