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

Organisation API page size limited to 20 #3783

Open
RobNicholsGDS opened this issue Oct 7, 2024 · 0 comments
Open

Organisation API page size limited to 20 #3783

RobNicholsGDS opened this issue Oct 7, 2024 · 0 comments

Comments

@RobNicholsGDS
Copy link

Is there a reason why the Organisation API page size is limited to 20?

The 20 limit is hard coded in a constant RESULTS_PER_PAGE in the controller code.

It would be fairly simple to modify the code to allow the page size to be passed in as a param the same way the page number is passed in. So for example, https://www.gov.uk/api/organisations?page_size=100 would return the first 100 organisations, or https://www.gov.uk/api/organisations?page_size=10&page3 would return the organisations from 20-29.

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

No branches or pull requests

1 participant