From eb257de8dd24e34e7d873db85c3ef978af9a0456 Mon Sep 17 00:00:00 2001 From: Kedar Khaire Date: Wed, 18 Oct 2023 15:29:01 +0530 Subject: [PATCH] Enhancements for query parameters --- .../Controller/PaginatedEntityListingControllerInterface.php | 2 +- .../Controller/PaginatedEntityListingControllerTrait.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerInterface.php b/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerInterface.php index c2426ed0..cd54cd6e 100644 --- a/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerInterface.php +++ b/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerInterface.php @@ -46,5 +46,5 @@ interface PaginatedEntityListingControllerInterface extends PaginatedEntityContr * * @return \Apigee\Edge\Entity\EntityInterface[] */ - public function getEntities(PagerInterface $pager = null, string $key_provider = 'id'): array; + public function getEntities(PagerInterface $pager = null, string $key_provider = 'id', $queryparams = []): array; } diff --git a/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerTrait.php b/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerTrait.php index fcb73c07..257ed31b 100644 --- a/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerTrait.php +++ b/src/Api/ApigeeX/Controller/PaginatedEntityListingControllerTrait.php @@ -32,9 +32,9 @@ trait PaginatedEntityListingControllerTrait * * @return \Apigee\Edge\Entity\EntityInterface[] */ - public function getEntities(PagerInterface $pager = null, string $key_provider = 'id'): array + public function getEntities(PagerInterface $pager = null, string $key_provider = 'id', $queryparams = []): array { - return $this->listEntities($pager, [], $key_provider); + return $this->listEntities($pager, $queryparams, $key_provider); } /**