Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
f8cbb4f0
Commit
f8cbb4f0
authored
Jun 12, 2018
by
Matija Obreza
Browse files
Increased API call max page size to 1000
parent
07ce3c22
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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