From 8214487608ee8c7dfc37bc9ca5b39ff85c77ec27 Mon Sep 17 00:00:00 2001 From: Gokulraj C <110164849+GOKULRAJ136@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:50:38 +0530 Subject: [PATCH] Updated createdDateTime entity in UserDetailsController Signed-off-by: Gokulraj C <110164849+GOKULRAJ136@users.noreply.github.com> --- .../kernel/masterdata/controller/UserDetailsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/UserDetailsController.java b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/UserDetailsController.java index f47107e274f..8b9188ce7ac 100644 --- a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/UserDetailsController.java +++ b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/controller/UserDetailsController.java @@ -78,7 +78,7 @@ public ResponseWrapper getUserById(@PathVariable("id") St @GetMapping(value = "/users") public ResponseWrapper> getUsers(@RequestParam(value = "pageNumber", defaultValue = "0") @ApiParam(value = "page number for the requested data", defaultValue = "0") int page, @RequestParam(value = "pageSize", defaultValue = "1") @ApiParam(value = "page size for the request data", defaultValue = "1") int size, - @RequestParam(value = "orderBy", defaultValue = "cr_dtimes") @ApiParam(value = "sort the requested data based on param value", defaultValue = "createdDateTime") String orderBy, + @RequestParam(value = "orderBy", defaultValue = "createdDateTime") @ApiParam(value = "sort the requested data based on param value", defaultValue = "createdDateTime") String orderBy, @RequestParam(value = "direction", defaultValue = "DESC") @ApiParam(value = "order the requested data based on param", defaultValue = "DESC") String direction) { ResponseWrapper> responseWrapper = new ResponseWrapper<>(); responseWrapper.setResponse(userDetailsService.getUsers(page, size, orderBy, direction));