From 77ec256a97b2d0a20d358f306114502ca3d57cf2 Mon Sep 17 00:00:00 2001 From: vinceh121 Date: Mon, 7 Aug 2023 18:56:13 +0200 Subject: [PATCH] fix: default page limit to 20 --- src/main/java/me/vinceh121/mobilitymock/SimpleCRUDRoute.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/vinceh121/mobilitymock/SimpleCRUDRoute.java b/src/main/java/me/vinceh121/mobilitymock/SimpleCRUDRoute.java index 8856bbe..5b461d3 100644 --- a/src/main/java/me/vinceh121/mobilitymock/SimpleCRUDRoute.java +++ b/src/main/java/me/vinceh121/mobilitymock/SimpleCRUDRoute.java @@ -51,7 +51,7 @@ protected void handleRead(RoutingContext ctx) { // does a paginated read // TODO single read with path params final int offset = Integer.parseInt(ctx.request().getParam("page[offset]", "0")); - final int limit = Integer.parseInt(ctx.request().getParam("page[limit]", "100")); + final int limit = Integer.parseInt(ctx.request().getParam("page[limit]", "20")); if (limit > 100) { // TODO use actual error msgs