RE: Pagination - let's finalize the collection design (ISSUE-42)

On 13 Okt 2015 at 19:00, Karol SzczepaƄski wrote:
>>> Still, your example has still several flaws and I think we'll end up with
>>> a
>>> conclusion that while served indeed provides a view, but the view is
>>> crafted
>>> by the client. We'll end up with very basic but still covering 95% of use
>>> cases "query like" hydra platform that will allow client to do simple
>>> operations we all know from applications we develop:
>>> - show first page of the collection - currently covered
>>> - show numbered pager - currently client wouldn't know how many pages
>>> there
>>> are
>> Could the server use a Shape here to instruct the client what are expected
>> values for page numbers?
> But how a shape could inform a client about that? In order to render
> proper number of pages client should know at least either the page size
> and total number of items or should be informed on how many pages are
> there explicitely.

The server would tell the client what the restrictions on page number are, that is min/max values.


--
Markus Lanthaler
@markuslanthaler

Received on Wednesday, 14 October 2015 18:57:10 UTC