RE: Call for consensus for the pagination design (ISSUE-42)

On 20 Okt 2015 at 16:24, Dietrich Schulten wrote:
> +1
> 
> One question: I take it we are not prescribing a particular URL for the
> next/previous links. I.e. "/an-issue/comments?page=2" is really just an
> example, we are treating the URL as an opaque link and we do not assume
> a predefined UriTemplate with a 'page' variable here, right?

Yes.
 

> I also started to implement it in hydra-java to see how well it maps to
> an already existing paging construct, Spring Hateoas' PagedResources. It
> was relatively simple to map, the only catch being the fact that the
> underlying class collects all navigation links into the link list of the
> collection resource. I had to move them out of the collections link list
> into the hydra:view's link list during serialization.

Fantastic. Thanks a lot for trying that.


--
Markus Lanthaler
@markuslanthaler

Received on Tuesday, 20 October 2015 19:52:49 UTC