NICE !!!

But I guess we (at least on the client) are ignoring the FIRST/LAST, right ? 

:)

-M

On Fri, Jan 18, 2013 at 3:55 PM, Daniel Bevenius <daniel.bevenius@gmail.com> wrote:
Hey, 

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).

I've update the controller-demo with the "200 OK" version, but let me know if this should be changed.

"Paging" beyond the last page of Cars

HTTP/1.1 200 OK
AG-Total: 16
AG-Links-First: cars?offset=0&limit=5
AG-Links-Last: cars?offset=11&limit=5
Content-Type: application/json;charset=UTF-8
Content-Length: 2

[]


gist: https://gist.github.com/4500336


On 17 January 2013 17:39, Douglas Campos <qmx@qmx.me> wrote:
On Thu, Jan 17, 2013 at 05:10:56PM +0100, Matthias Wessendorf wrote:
> On Tue, Jan 15, 2013 at 11:55 AM, Douglas Campos <qmx@qmx.me> wrote:
> > standards++
>
> Looks like we agreed on using the RFC 5988 for the linking.
>
> I think we "just" need to decide on the actual values...
>
> 1) the standard uses "previous" and "next"
no-brainer - let's follow the standards

-- qmx :)
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev




--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf