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){ 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); }