Skip to content

Pagination - #1

Open
ZachBurke04652 wants to merge 3 commits into
v1from
pagination
Open

Pagination#1
ZachBurke04652 wants to merge 3 commits into
v1from
pagination

Conversation

@ZachBurke04652

Copy link
Copy Markdown
Collaborator

Added pagination feature.
In the deployment environment, you should be able to go to pages like
http://localhost:8000/api/data/species/?page=1
http://localhost:8000/api/data/species/?page=1-2
http://localhost:8000/api/data/species/?page=2-3
and see the species paginated in groups of 20.

In the SpeciesViewSet class added a list function that handles pagination
Model to handle pagination
In REST_FRAMEWORK, added default pagination class and page size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant