Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
f8cbb4f0
Commit
f8cbb4f0
authored
Jun 12, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increased API call max page size to 1000
parent
07ce3c22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
src/main/java/org/genesys2/server/servlet/controller/rest/RestController.java
...nesys2/server/servlet/controller/rest/RestController.java
+1
-1
src/main/resources/application.properties
src/main/resources/application.properties
+3
-1
src/test/resources/application.properties
src/test/resources/application.properties
+2
-0
No files found.
src/main/java/org/genesys2/server/servlet/controller/rest/RestController.java
View file @
f8cbb4f0
...
...
@@ -38,7 +38,7 @@ public abstract class RestController {
protected
static
final
ApiResult
JSON_OK
=
new
ApiResult
(
true
);
@Value
(
"${paginator.
default
.maxPageSize}"
)
@Value
(
"${paginator.
api
.maxPageSize}"
)
protected
int
maxPageSize
;
public
static
class
ApiResult
{
...
...
src/main/resources/application.properties
View file @
f8cbb4f0
...
...
@@ -24,11 +24,13 @@ base.cookie-secure=false
base.cookie-http-only
=
true
#Paginator
#
Paginator
paginator.default.maxPageSize
=
500
paginator.default.pageSize
=
50
paginator.default.fastStep
=
3
paginator.default.maxPage
=
4
# Pagination for API calls
paginator.api.maxPageSize
=
1000
# Default account info
default.admin.email
=
admin@example.com
...
...
src/test/resources/application.properties
View file @
f8cbb4f0
...
...
@@ -19,6 +19,8 @@ paginator.default.maxPageSize=500
paginator.default.pageSize
=
2
paginator.default.fastStep
=
3
paginator.default.maxPage
=
4
# Pagination for API calls
paginator.api.maxPageSize
=
1000
# Default account info
default.admin.email
=
admin@example.com
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment