You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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, orhttps://www.gov.uk/api/organisations?page_size=10&page3
would return the organisations from 20-29.The text was updated successfully, but these errors were encountered: