diff --git a/.gitignore b/.gitignore index 4cedecc917..f60df091be 100644 --- a/.gitignore +++ b/.gitignore @@ -105,3 +105,7 @@ dist # Other *.DS_Store + +# IDE +.idea +.vscode diff --git a/developer-docs/latest/concepts/configurations.md b/developer-docs/latest/concepts/configurations.md index 602d0c48c5..42157ae0e8 100644 --- a/developer-docs/latest/concepts/configurations.md +++ b/developer-docs/latest/concepts/configurations.md @@ -284,6 +284,10 @@ module.exports = ({ env }) => ({ responses: { privateAttributes: ['_v', 'id', 'created_at'], }, + rest: { + defaultLimit: 100, + maxLimit: 250, + }, }); ``` @@ -293,6 +297,9 @@ module.exports = ({ env }) => ({ | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------- | | `responses` | Global API response configuration | Object | | | `responses.privateAttributes` | Set of globally defined attributes to be treated as private. E.g. `_v` when using MongoDb or timestamps like `created_at`, `updated_at` can be treated as private | String array | `[]` | +| `rest` | REST API configuration | Object | | +| `rest.defaultLimit` | Specifies default `_limit` parameter used in API calls | Integer | `100` | +| `rest.maxLimit` | Specifies max allowed number that can be requested as `_limit`. Default to `null` which fetches all results | Integer | `null` | ## Functions