- From: <tom.panier@free.fr>
- Date: Thu, 10 Sep 2015 22:44:16 +0200 (CEST)
- To: Hydra <public-hydra@w3.org>
- Message-ID: <433006265.49390175.1441917856954.JavaMail.root@zimbra60-e10.priv.proxad.net>
Hi all, I was reading a bit online and stumbled upon this : https://www.w3.org/community/hydra/wiki/Pagination I don't know if the debate about the best pagination design is over yet, but I personally like the latest approach : { "@id": "http://api.example.com/an-issue/comments?whatever=3", "@type": "Collection", "first": "/an-issue/comments", "previous": "/an-issue/comments?whatever=2", "next": "/an-issue/comments?whatever=4", "last": "/an-issue/comments?whatever=498", "member": [ ... ] } I like the simplicity of it. In the "cons" of this approach is said that there is "No way to explicitly link to a specific page. A client would always be expected to fetch the all "pages" of a collection unless it finds the data it was looking for earlier". I then thought of an extra parameter that would allow one to describe the pagination scheme in the URL, in such manner that the client would be able to deduce the way to go to a specific page. What do you think? Tom Panier, web developer @_neemzy - neemzy.org ----- Mail d'origine ----- De: Kévin Dunglas <dunglas@gmail.com> À: Markus Lanthaler <markus.lanthaler@gmx.net> Cc: Hydra <public-hydra@w3.org> Envoyé: Wed, 22 Jul 2015 23:11:48 +0200 (CEST) Objet: Re: Hello world Hi Markus, The talk was recorder but... it's in french: https://www.youtube.com/watch?v=uI8Dr-Kt6p4 Best regards. 2015-07-21 22:58 GMT+02:00 Markus Lanthaler <markus.lanthaler@gmx.net>: Hi Tom, On 16 Jul 2015 at 12:41, tom.panier@free.fr wrote: > I'm Tom, and I just joined the Hydra W3C community group on Markus Lanthaler's advice. Great to see you here :-) > I've been introduced to the world of Hydra, JSON-LD and Schema.org by a French fellow > (just like me) named Kévin Dunglas, who recently did an amazing job at implementing those > three standards in a full-fledged PHP framework named API Platform (actually built on top > of Symfony, for those of you who are familiar with it). +1, fantastic work > He then demonstrated his work at a > Symfony conference in Paris I was attending, and I realized these were the future of web > APIs. I actually didn't realize that. Was the talk recorded? > As a PHP *and* JavaScript developer, I decided to contribute some time myself to > this topic and started working on a Hydra/JSON-LD library for the LoopBack framework > (designed to build HTTP APIs). It is currently a work in progress, as I am in touch with > Markus and the LoopBack people to make it go forward as much as I can. Long story short, > I joined this group to be able to get information which can help me with this project, and let > you know about my progress if you guys care. Please keep us posted. > On a more general note, you can learn more about me on my blog (he link is at the bottom of > this mail). > > I would like to add, if it wasn't already clear, that I as a regular API > builder and consumer, have the greatest respect for what you guys are > doing and cannot wait until it finally lands everywhere! Thanks for the kind words! What we probably need most at the moment is investment in tooling and libraries. So contributions like yours will be critical to the success. Cheers, Markus -- Markus Lanthaler @markuslanthaler -- Kévin Dunglas https://dunglas.frTwitter: @dunglas Phone: +33 6 60 91 20 20
Received on Thursday, 10 September 2015 20:44:43 UTC