diff --git a/src/DataProvider/OrganizationCollectionDataProvider.php b/src/DataProvider/OrganizationCollectionDataProvider.php index 43995a2a04f8f58e3b0bf9d06cc04dfe72592f91..2a85afccf8b3f68981c33ed8b66c7dcb5129db40 100644 --- a/src/DataProvider/OrganizationCollectionDataProvider.php +++ b/src/DataProvider/OrganizationCollectionDataProvider.php @@ -55,6 +55,8 @@ final class OrganizationCollectionDataProvider extends AbstractController implem } LocalData::addOptions($options, $filters); + + $filters['partialPagination'] = true; Pagination::addOptions($options, $filters, self::MAX_ITEMS_PER_PAGE); // @deprecate 'lang' filter is deprecate, use 'Accept-Language' header instead diff --git a/src/Entity/Organization.php b/src/Entity/Organization.php index 0c5105b6456e3971b39708f2e0293f434b84550d..499e7231f69508d8cab82d83d7694f25329c83ee 100644 --- a/src/Entity/Organization.php +++ b/src/Entity/Organization.php @@ -19,10 +19,9 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait; * "tags" = {"BaseOrganization"}, * "parameters" = { * {"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" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "BaseOrganization.code"}, - * {"name" = "partialPagination", "in" = "query", "description" = "Partial pagination", "type" = "bool", "example" = "false"} + * {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "code"} * } * } * } @@ -35,7 +34,7 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait; * "tags" = {"BaseOrganization"}, * "parameters" = { * {"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"} * } * } * },