Pagination (was: Re: [PATCH 1/3] REST: Integrate django-filter support)
    Andrew Donnellan 
    andrew.donnellan at au1.ibm.com
       
    Mon Dec 12 18:14:47 AEDT 2016
    
    
  
On 21/11/16 14:17, Andrew Donnellan wrote:
> On 21/11/16 11:39, Russell Currey wrote:
>> Do you know if there's a way to get a reverse ordering of entries in
>> the REST
>> API?  For example in the patches API each "page" has 30 entries, and
>> you can get
>> the latest page with ?page=last - but this isn't as nice as a reverse
>> ordering
>> of ids or dates.  Do you know if there's a way to do this at present,
>> or is that
>> something that could be made available with filters?
>
> I'd be kinda tempted to consider using cursor pagination for this, which
> Django REST Framework supports.
>
> That's not a filter-related thing though.
Stephen, any thoughts on this?
-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited
    
    
More information about the Patchwork
mailing list