From 3356f69e4be760b98512002257bd4a0217560594 Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 22 Apr 2024 12:20:47 +0530 Subject: [PATCH 1/2] MOSIP-29472 Removed all from dynamic field endpoint Signed-off-by: kameshsr --- .../kernel/masterdata/controller/DynamicFieldController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/DynamicFieldController.java b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/DynamicFieldController.java index 7fcad875988..9364c59a2e2 100644 --- a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/DynamicFieldController.java +++ b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/DynamicFieldController.java @@ -93,7 +93,7 @@ public ResponseWrapper getDynamicFieldByName } @ResponseFilter - @GetMapping("/all/{fieldName}") + @GetMapping("/{fieldName}") @ApiOperation(value = " Service to fetch one dynamic field in all the languages") public ResponseWrapper> getAllDynamicFieldByName( @PathVariable("fieldName") String fieldName){ From e73ee66b551acc737f1567a1a0043283a88bda8e Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 22 Apr 2024 12:47:49 +0530 Subject: [PATCH 2/2] MOSIP-29472 Removed all from dynamic field endpoint Signed-off-by: kameshsr --- .../masterdata/test/controller/DynamicFieldControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/DynamicFieldControllerTest.java b/admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/DynamicFieldControllerTest.java index 5c094b25689..8515524806f 100644 --- a/admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/DynamicFieldControllerTest.java +++ b/admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/DynamicFieldControllerTest.java @@ -421,7 +421,7 @@ public void t022getDynamicFieldByNameTest2() throws Exception { @WithUserDetails("global-admin") public void t000getAllDynamicFieldByNameTest() throws Exception { MasterDataTest.checkResponse( - mockMvc.perform(MockMvcRequestBuilders.get("/dynamicfields/all/gender")).andReturn(), + mockMvc.perform(MockMvcRequestBuilders.get("/dynamicfields/gender")).andReturn(), null); }