But if we go for this solution, we must also add in the usage page a section showing a custom impl to pass the parameter. <br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 9:32 AM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1 with Matthias&#39;s suggestion.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 9:25 AM, 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>On Fri, Jan 18, 2013 at 6:33 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:<br>


&gt;&gt; My suggestion is to name these two parameters something more generic like locator/count where locator=page/offset and count=limit/perPage. Then in our configs we would provide these options:<br>
&gt;&gt;<br>
&gt;&gt; pagingType {String} - determines the paging method to be used in calculating next page, etc. and could be either &quot;offset&quot; or &quot;page&quot;, default &quot;offset&quot;<br>
&gt;&gt; locatorParam {String} - locator parameter name, default &quot;offset&quot;<br>
&gt;&gt; locatorValue {Number} - page index or offset<br>
&gt;&gt; locatorIdentifier {String} - the locator identifier name, default &quot;AG-Paging-Offset&quot;<br>
&gt;&gt; countParam {String} - count parameter name, default &quot;limit&quot;<br>
&gt;&gt; countValue {Number} - items per page<br>
&gt;&gt; countIdentifier {String} - the count identifier name, default &quot;AG-Paging-Limit&quot;<br>
&gt;&gt;<br>
&gt;&gt; Thoughts?<br>
<br>
<br>
</div>OK.... I agree that you raised a valid concern, regarding that the<br>
client needs to indicate whether paging information is sent as<br>
headers, as query parameters, or as body data.<br>
<br>
<br>
But I still am not so sure if the above args are all really needed, a<br>
ton of cfg params make it a bit fishy.<br>
How about, using the following as a default &quot;parameter provider&quot;<br>
- offset (which sets the offset of the first element that should be<br>
included in the returned collection)<br>
- limit (the number of results that should be listed on a page)<br>
<br>
OK.<br>
<br>
Now if a user wants/needs to provide a different parameter schema<br>
(imagine his/her lame server requires/supports &quot;page&quot;, &quot;perPage&quot; and<br>
&quot;sorting&quot;):<br>
The developer could just create a custom impl (iOS: block, Java:<br>
anonymus class impl of an interface, JS: callback function) and pass<br>
it to the &quot;paging request&quot;.<br>
<br>
that way the dev. could even add a ton of more params (if the lame<br>
backend requires that).<br>
<br>
since the pipe (or the paging request) knows whether the paging<br>
information is sent as headers, as query parameters, or as body data,<br>
it would just &quot;serialize&quot; the give &quot;param provider&quot; into the actual<br>
location.<br>
<br>
Any thoughts?<br>
<span><font color="#888888"><br>
-M<br>
</font></span><div><div><br>
<br>
<br>
<br>
<br>
<br>
&gt;<br>
&gt;<br>
&gt; Any news on this ?<br>
&gt;<br>
&gt; -Matthias<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Jan 17, 2013, at 12:23 PM, Summers Pittman &lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 01/17/2013 11:37 AM, Matthias Wessendorf wrote:<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; based on today&#39;s IRC and mailing list discussions, I have polished the<br>
&gt;&gt;&gt;&gt; client side paging spec:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; <a href="https://github.com/aerogear/aerogear.org/blob/client_paging_spec/docs/specs/abstract_aerogear-client-paging.markdown" target="_blank">https://github.com/aerogear/aerogear.org/blob/client_paging_spec/docs/specs/abstract_aerogear-client-paging.markdown</a><br>


&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Please review the document!<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Cheers!<br>
&gt;&gt;&gt;&gt; Matthias<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; +1, let&#39;s see how it works in actual implementation!<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><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" target="_blank">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></div></blockquote></div><br>