From abc336f94555492765bc1b971a8fb9be382d09a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=EA=B4=80=ED=9D=AC?= Date: Thu, 25 Jul 2024 22:40:26 +0900 Subject: [PATCH] =?UTF-8?q?Video,=20Article=20Default=20Size=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/stempo/api/domain/presentation/ArticleController.java | 2 +- .../com/stempo/api/domain/presentation/VideoController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/stempo/api/domain/presentation/ArticleController.java b/src/main/java/com/stempo/api/domain/presentation/ArticleController.java index 7ccf015..3c9fb05 100644 --- a/src/main/java/com/stempo/api/domain/presentation/ArticleController.java +++ b/src/main/java/com/stempo/api/domain/presentation/ArticleController.java @@ -51,7 +51,7 @@ public ApiResponse registerArticle( @GetMapping("/api/v1/articles") public ApiResponse> getArticles( @RequestParam(name = "page", defaultValue = "0") int page, - @RequestParam(name = "size", defaultValue = "20") int size, + @RequestParam(name = "size", defaultValue = "3") int size, @RequestParam(name = "sortBy", defaultValue = "createdAt") List sortBy, @RequestParam(name = "sortDirection", defaultValue = "desc") List sortDirection ) throws InvalidColumnException, SortingArgumentException { diff --git a/src/main/java/com/stempo/api/domain/presentation/VideoController.java b/src/main/java/com/stempo/api/domain/presentation/VideoController.java index 8d1bc64..dc43f27 100644 --- a/src/main/java/com/stempo/api/domain/presentation/VideoController.java +++ b/src/main/java/com/stempo/api/domain/presentation/VideoController.java @@ -51,7 +51,7 @@ public ApiResponse registerVideo( @GetMapping("/api/v1/videos") public ApiResponse> getVideos( @RequestParam(name = "page", defaultValue = "0") int page, - @RequestParam(name = "size", defaultValue = "20") int size, + @RequestParam(name = "size", defaultValue = "2") int size, @RequestParam(name = "sortBy", defaultValue = "createdAt") List sortBy, @RequestParam(name = "sortDirection", defaultValue = "desc") List sortDirection ) throws InvalidColumnException, SortingArgumentException {