Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view: introduce max_result_page config variable for the endpoints #188

Open
egabancho opened this issue Mar 12, 2018 · 0 comments
Open

view: introduce max_result_page config variable for the endpoints #188

egabancho opened this issue Mar 12, 2018 · 0 comments

Comments

@egabancho
Copy link
Member

egabancho commented Mar 12, 2018

As it is now one can go and request a page size of max_result_window. It might be nice to allow the page size to be configurable:

RECORDS_REST_ENDPOINTS = dict(
    recid=dict(
        ...
        list_route='/records/',
        item_route='/records/<pid(recid):pid_value>',
        default_media_type='application/json',
        max_result_page=1000,
        max_result_window=10000,
        error_handlers=dict(),
    ),
)
@lnielsen lnielsen added this to the v1.0.0 milestone Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants