Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 31264d9

Browse files
committed
update docs
1 parent e6ac383 commit 31264d9

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

docs/configuration.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _configuration:
2+
3+
Configuration
4+
=============
5+
6+
You have access to 3 configration keys:
7+
8+
* PAGE_SIZE: the default page size (default is 30)
9+
* MAX_PAGE_SIZE: the maximum page size. If you speficy a page size greater than this value you will receive 400 Bad Request response.
10+
* MAX_INCLUDE_DEPTH: the maximum length of an include through schema relationships

docs/data_layer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Optional parameters:
100100
:id_field: the field used as identifier field instead of the primary key of the model
101101
:url_field: the name of the parameter in the route to get value to filter with. Instead "id" is used.
102102

103+
By default SQLAlchemy eagerload related data specified in include querystring parameter. If you want to disable this feature you must add eagerload_includes: False to data layer parameters.
104+
103105
Custom data layer
104106
-----------------
105107

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Flask-REST-JSONAPI with Flask.
5757
api
5858
permission
5959
oauth
60+
configuration
6061

6162
API Reference
6263
-------------

docs/pagination.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pagination
55

66
.. currentmodule:: flask_rest_jsonapi
77

8-
When you use the default implementation of get method on a ResourceList your results will be paginated by default. Default pagination size is 20 but you can manage it from querystring parameter named "page".
8+
When you use the default implementation of get method on a ResourceList your results will be paginated by default. Default pagination size is 30 but you can manage it from querystring parameter named "page".
99

1010
.. note::
1111

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,4 +826,4 @@ Response:
826826
}
827827
}
828828

829-
If you want to see more examples to go `JSON API 1.0 specification <http://jsonapi.org/>`_
829+
If you want to see more examples go to `JSON API 1.0 specification <http://jsonapi.org/>`_

0 commit comments

Comments
 (0)