Skip to content
Snippets Groups Projects
Commit 96afa606 authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

partial pagination now default

parent 6b3014f2
No related branches found
No related tags found
No related merge requests found
Pipeline #199625 passed
...@@ -55,6 +55,8 @@ final class OrganizationCollectionDataProvider extends AbstractController implem ...@@ -55,6 +55,8 @@ final class OrganizationCollectionDataProvider extends AbstractController implem
} }
LocalData::addOptions($options, $filters); LocalData::addOptions($options, $filters);
$filters['partialPagination'] = true;
Pagination::addOptions($options, $filters, self::MAX_ITEMS_PER_PAGE); Pagination::addOptions($options, $filters, self::MAX_ITEMS_PER_PAGE);
// @deprecate 'lang' filter is deprecate, use 'Accept-Language' header instead // @deprecate 'lang' filter is deprecate, use 'Accept-Language' header instead
......
...@@ -19,10 +19,9 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait; ...@@ -19,10 +19,9 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait;
* "tags" = {"BaseOrganization"}, * "tags" = {"BaseOrganization"},
* "parameters" = { * "parameters" = {
* {"name" = "search", "in" = "query", "description" = "Search filter (partial, case-insensitive text search on 'name' attribute)", "type" = "string", "required" = false}, * {"name" = "search", "in" = "query", "description" = "Search filter (partial, case-insensitive text search on 'name' attribute)", "type" = "string", "required" = false},
* {"name" = "person", "in" = "query", "description" = "DEPRECATE: Get organizations of a person (ID of BasePerson resource)", "type" = "string", "required" = false}, * {"name" = "person", "in" = "query", "description" = "DEPRECATED: Get organizations of a person (ID of BasePerson resource)", "type" = "string", "required" = false},
* {"name" = "queryLocal", "in" = "query", "description" = "Local query parameters to apply", "type" = "string"}, * {"name" = "queryLocal", "in" = "query", "description" = "Local query parameters to apply", "type" = "string"},
* {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "BaseOrganization.code"}, * {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "code"}
* {"name" = "partialPagination", "in" = "query", "description" = "Partial pagination", "type" = "bool", "example" = "false"}
* } * }
* } * }
* } * }
...@@ -35,7 +34,7 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait; ...@@ -35,7 +34,7 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait;
* "tags" = {"BaseOrganization"}, * "tags" = {"BaseOrganization"},
* "parameters" = { * "parameters" = {
* {"name" = "identifier", "in" = "path", "description" = "Resource identifier", "required" = true, "type" = "string", "example" = "1190"}, * {"name" = "identifier", "in" = "path", "description" = "Resource identifier", "required" = true, "type" = "string", "example" = "1190"},
* {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "BaseOrganization.code"} * {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "code"}
* } * }
* } * }
* }, * },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment