From cff898623c80ff585a3c94eb7fc013f6401a0663 Mon Sep 17 00:00:00 2001 From: Aravindhan Alagesan Date: Fri, 10 Nov 2023 16:49:08 +0530 Subject: [PATCH] Removed the identity from API response (#1148) Signed-off-by: Aravindhan Alagesan Signed-off-by: kameshsr --- .../java/io/mosip/resident/controller/IdentityController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/resident/resident-service/src/main/java/io/mosip/resident/controller/IdentityController.java b/resident/resident-service/src/main/java/io/mosip/resident/controller/IdentityController.java index 9b9f8adef15..c5cfd1e78ac 100644 --- a/resident/resident-service/src/main/java/io/mosip/resident/controller/IdentityController.java +++ b/resident/resident-service/src/main/java/io/mosip/resident/controller/IdentityController.java @@ -86,6 +86,7 @@ public ResponseWrapper getInputAttributeValues(@PathVariable("schemaType ResponseWrapper responseWrapper = new ResponseWrapper<>(); String id = getIdFromUser(); Map propertiesResponse = idServiceImpl.getIdentityAttributes(id, schemaType, List.of()); + propertiesResponse.remove(Utility.IDENTITY); auditUtil.setAuditRequestDto(EventEnum.GET_INPUT_ATTRIBUTES_SUCCESS); logger.debug("IdentityController::getInputAttributeValues()::exit"); responseWrapper.setResponse(propertiesResponse);