From b4f6b42ffe84959dd5508dfb0e0e045ec3f5e071 Mon Sep 17 00:00:00 2001 From: ayoung-dev Date: Mon, 9 Dec 2024 16:26:41 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore(search):=20/api/v1=20prefix=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/RecruitBoardSearchApiController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java b/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java index 69902dfa6..4757f1d22 100644 --- a/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java +++ b/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java @@ -24,11 +24,10 @@ @Tag(name = "Recruit Board Search API", description = "봉사 활동 모집 검색 관련 API") @RequiredArgsConstructor -@RequestMapping("/api_v1") +@RequestMapping("/api/v1") @RestController public class RecruitBoardSearchApiController { - private final RecruitBoardQueryUseCase recruitBoardQueryUseCase; private final RecruitBoardDocumentUseCase recruitBoardDocumentUseCase; @GetMapping("/recruit-boards/search") From 49ee2c42b1311d920e7d52ba0ce3b85c507bc694 Mon Sep 17 00:00:00 2001 From: ayoung-dev Date: Mon, 9 Dec 2024 16:50:52 +0900 Subject: [PATCH 2/2] =?UTF-8?q?test(search):=20/api/v1=20prefix=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/RecruitBoardSearchApiControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java b/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java index 9f670c1e9..36b61fbb2 100644 --- a/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java +++ b/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java @@ -45,7 +45,7 @@ void getAllBySearch() throws Exception { // when // then - mockMvc.perform(get("/api_v1/recruit-boards/search") + mockMvc.perform(get("/api/v1/recruit-boards/search") .param("keyword", "volunteer") .param("category", ADMINISTRATIVE_SUPPORT.name()) .accept(MediaType.APPLICATION_JSON)) @@ -68,7 +68,7 @@ void getNearby() throws Exception { // when // then - mockMvc.perform(get("/api_v1/recruit-boards/nearby") + mockMvc.perform(get("/api/v1/recruit-boards/nearby") .param("latitude", "37.5665") .param("longitude", "126.9780") .param("radius", "10")