Pagination In APIView.

346 views
Skip to first unread message

Rishabh Jain

unread,
Nov 13, 2016, 5:27:15 AM11/13/16
to Django REST framework
Can anyone explain how to do pagination in class inherited from APIView , so as to retuen next, count, previous , results value. 

Thank you.

Xavier Ordoquy

unread,
Nov 14, 2016, 5:17:36 AM11/14/16
to Django REST framework
The pagination is explained at http://www.django-rest-framework.org/api-guide/pagination/#pagenumberpagination and the configuration on a per view basis is in the second part of http://www.django-rest-framework.org/api-guide/pagination/#setting-the-pagination-style

Regards,
Xavier Ordoquy,
Linovia.
Reply all
Reply to author
Forward
0 new messages