<div dir="ltr">Great, I've removed them now and updated the gist.<div><br></div><div style>Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 January 2013 16:14, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Jan 18, 2013 at 4:04 PM, Kris Borchers <<a href="mailto:kris@redhat.com">kris@redhat.com</a>> wrote:<br>
><br>
><br>
> On Jan 18, 2013, at 9:03 AM, Daniel Bevenius <<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>> wrote:<br>
><br>
> >But I guess we (at least on the client) are ignoring the FIRST/LAST, right ?<br>
> So should we only provide previous/next where it makes sense and remove first/last?<br>
><br>
><br>
> +1<br>
<br>
<br>
+1<br>
<br>
<br>
<br>
<br>
<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On 18 January 2013 15:57, Matthias Wessendorf <<a href="mailto:matzew@apache.org">matzew@apache.org</a>> wrote:<br>
>><br>
>> NICE !!!<br>
>><br>
>> But I guess we (at least on the client) are ignoring the FIRST/LAST, right ?<br>
>><br>
>> :)<br>
>><br>
>> -M<br>
>><br>
>> On Fri, Jan 18, 2013 at 3:55 PM, Daniel Bevenius <<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>> wrote:<br>
>>><br>
>>> Hey,<br>
>>><br>
>>> there was some talk yesterday on IRC about what should be returned by AeroGear Controller if you go beyond past the last page. There was talk of responding with "204 No Content" with an empty body, or responde with "200 OK" and a body containing an empty array (in the case of returning a JSON responds).<br>
>>><br>
>>> I've update the controller-demo with the "200 OK" version, but let me know if this should be changed.<br>
>>><br>
>>> "Paging" beyond the last page of Cars<br>
>>><br>
>>> curl -i --header "Accept: application/json" "<a href="http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars?offset=200&limit=5" target="_blank">http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/cars?offset=200&limit=5</a>"<br>
>>><br>
>>> HTTP/1.1 200 OK<br>
>>> AG-Total: 16<br>
>>> AG-Links-First: cars?offset=0&limit=5<br>
>>> AG-Links-Last: cars?offset=11&limit=5<br>
>>> Content-Type: application/json;charset=UTF-8<br>
>>> Content-Length: 2<br>
>>><br>
>>> []<br>
>>><br>
>>><br>
>>><br>
>>> gist: <a href="https://gist.github.com/4500336" target="_blank">https://gist.github.com/4500336</a><br>
>>><br>
>>><br>
>>> On 17 January 2013 17:39, Douglas Campos <<a href="mailto:qmx@qmx.me">qmx@qmx.me</a>> wrote:<br>
>>>><br>
>>>> On Thu, Jan 17, 2013 at 05:10:56PM +0100, Matthias Wessendorf wrote:<br>
>>>> > On Tue, Jan 15, 2013 at 11:55 AM, Douglas Campos <<a href="mailto:qmx@qmx.me">qmx@qmx.me</a>> wrote:<br>
>>>> > > standards++<br>
>>>> ><br>
>>>> > Looks like we agreed on using the RFC 5988 for the linking.<br>
>>>> ><br>
>>>> > I think we "just" need to decide on the actual values...<br>
>>>> ><br>
>>>> > 1) the standard uses "previous" and "next"<br>
>>>> no-brainer - let's follow the standards<br>
>>>><br>
>>>> -- qmx :)<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>
>>><br>
>>><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>
>><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>
>> _______________________________________________<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>
><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>
><br>
><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>
<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>
_______________________________________________<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>