Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
You can use the `per_page` and `page` pagination parameters to limit the search results that an API search query returns.
The `per_page` parameter specifies the number of results per page and the `page` parameter specifies which page, as calculated by the `per_page` parameter, to return.

The default number of items to return is set to 1000 when you do not specify any pagination parameters, but the `per_page` value has a default of 20 which applies when you specify the `page` parameter.
The default number of items to be presented is set to `20`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ekohl, would it be okay to create a new issue for your comment? What I'm taking from this is that @waldirio's PR is correct as is and if that's the case, I'd rather accept it and track your suggestion in an issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically @waldirio is only correct for installations where the entries_per_page setting is set to 20. By default that's true, but it doesn't have to be.

I'd suggest something like:

The number of items to be presented is set using the setting entries_per_page, which defaults to 20.
However, you can change it per request by using the parameter per_page.

However, you can change it by using the parameter `per_page` parameter.

This example returns a list of architectures for an organization with ID `1` in pages.
The list contains 5 entries per page and returns the second page.
Expand Down