Pagination contract for list endpoints

[deleted] 2 weeks ago Resolved

What's the pagination contract on list endpoints — page/per_page query args, and are total counts returned in headers? Want to build a correct paginator the first time.

15
[deleted] OP

Strong agree. Good defaults beat a wall of toggles every single time.

[deleted] OP

One caveat for larger communities: keep an eye on the indexes. At a few thousand rows the difference is night and day.

[deleted] OP Accepted

Yes. The recommended approach is to use Access Rules on the space: set the rule type to Membership, pick the level, and set the space visibility to Private. Members at that level and above see it automatically; everyone else does not.

[deleted] OP

Thanks for writing this up. Bookmarking it — the kind of thing I will want to reference again in a month.

[deleted] OP

This deserves more votes. It is a small change with an outsized impact on day-to-day use.

[deleted] OP

Appreciate the clear steps. The dry-run tip in particular saved me from a mistake I would not have caught otherwise.

[deleted] OP

Appreciate the clear steps. The dry-run tip in particular saved me from a mistake I would not have caught otherwise.

Click Any Link Below To Find Out More

This will close in 0 seconds