diff --git a/config/jsonapi.php b/config/jsonapi.php index 2b98ab3..60f37d8 100644 --- a/config/jsonapi.php +++ b/config/jsonapi.php @@ -121,6 +121,10 @@ // Default page size 'size' => 25, + + // Maximum allowed page size + 'max_size' => 1000, + ], diff --git a/src/Contracts/Support/Request/RequestQueryParserInterface.php b/src/Contracts/Support/Request/RequestQueryParserInterface.php index 965da91..3ce4409 100644 --- a/src/Contracts/Support/Request/RequestQueryParserInterface.php +++ b/src/Contracts/Support/Request/RequestQueryParserInterface.php @@ -62,7 +62,7 @@ public function getPageOffset(); public function getPageLimit(); /** - * @return int + * @return mixed */ public function getPageCursor(); diff --git a/src/Support/Request/RequestQueryParser.php b/src/Support/Request/RequestQueryParser.php index e9886fd..6b68fb6 100644 --- a/src/Support/Request/RequestQueryParser.php +++ b/src/Support/Request/RequestQueryParser.php @@ -180,7 +180,7 @@ public function getPageLimit() } /** - * @return int + * @return mixed */ public function getPageCursor() {