Allow size of pages in V2 api to be configurable

This commit is contained in:
Joseph Schorr 2018-02-01 12:57:04 -05:00
parent 1b065c27e0
commit eae9175950
3 changed files with 8 additions and 1 deletions

View file

@ -41,7 +41,7 @@ def handle_registry_v2_exception(error):
return response
_MAX_RESULTS_PER_PAGE = 50
_MAX_RESULTS_PER_PAGE = app.config.get('V2_PAGINATION_SIZE', 50)
def paginate(limit_kwarg_name='limit', offset_kwarg_name='offset',