Overview

This is a memo on some configuration settings for Strapi’s REST API.

Changing the Search Result Limit

The following documentation describes this.

https://docs.strapi.io/dev-docs/api/rest/sort-pagination#pagination

Specifically:

The default and maximum values for pagination[limit] can be configured in the ./config/api.js file with the api.rest.defaultLimit and api.rest.maxLimit keys.

m}o;dr}ue,lsdmweteai.:fxteaLhx{uiCplmootiurLtnti:tsm:i1=t0t:0r{0u2,e5,,100,

Retrieving Items Including Those with Draft STATE

By default, items with a Draft STATE could not be retrieved. The following article was helpful.

https://forum.strapi.io/t/can-i-expose-an-collection-entry-in-draft-mode-in-the-api-for-a-certain-user/895/4

Specifically, by adding the following query parameters, draft items could be retrieved.

?publicationState=preview&filters[publishedAt][$null]=true

Summary

We hope this is helpful when using Strapi.