Skip to content

Commit

Permalink
Add pagination to list APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
JElgar committed Sep 9, 2024
1 parent ba4e9c9 commit b5e9e85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion causes_service/now_u_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def get_required_env(name: str) -> str:
'DEFAULT_AUTHENTICATION_CLASSES': [
# TODO Add base authentication class which lets you authenticate if you are logged into admin
'now_u_api.authentication.NowuTokenAuthentication',
]
],
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 100,
}

SPECTACULAR_SETTINGS = {
Expand Down

0 comments on commit b5e9e85

Please sign in to comment.