Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Fixed pagination interface & added max page size config option
Browse files Browse the repository at this point in the history
  • Loading branch information
Coen Zimmerman committed Jun 17, 2017
1 parent 3084cf2 commit 7c9255d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/jsonapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@

// Default page size
'size' => 25,

// Maximum allowed page size
'max_size' => 1000,

],


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getPageOffset();
public function getPageLimit();

/**
* @return int
* @return mixed
*/
public function getPageCursor();

Expand Down
2 changes: 1 addition & 1 deletion src/Support/Request/RequestQueryParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getPageLimit()
}

/**
* @return int
* @return mixed
*/
public function getPageCursor()
{
Expand Down

0 comments on commit 7c9255d

Please sign in to comment.