diff --git a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdRequestByIdDTO.java b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdRequestByIdDTO.java new file mode 100644 index 0000000..efce7be --- /dev/null +++ b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdRequestByIdDTO.java @@ -0,0 +1,17 @@ +package io.mosip.signup.plugin.mosipid.dto; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@NoArgsConstructor +@AllArgsConstructor +public class IdRequestByIdDTO { + private String id; + private String type; + private String idType; + private String fingerExtractionFormat; + private String irisExtractionFormat; + private String faceExtractionFormat; +} diff --git a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java index 21df173..c4878f4 100644 --- a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java +++ b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java @@ -209,8 +209,14 @@ public ProfileCreateUpdateStatus getProfileCreateUpdateStatus(String requestId) @Override public ProfileDto getProfile(String individualId) throws ProfileException { try { - String endpoint = String.format(getIdentityEndpoint, individualId); - ResponseWrapper responseWrapper = request(endpoint, HttpMethod.GET, null, + IdRequestByIdDTO requestByIdDTO = new IdRequestByIdDTO(); + RequestWrapper idDTORequestWrapper=new RequestWrapper<>(); + requestByIdDTO.setId(individualId); + requestByIdDTO.setType("demo"); + requestByIdDTO.setIdType("HANDLE"); + idDTORequestWrapper.setRequest(requestByIdDTO); + idDTORequestWrapper.setRequesttime(getUTCDateTime()); + ResponseWrapper responseWrapper = request(getIdentityEndpoint, HttpMethod.POST, idDTORequestWrapper, new ParameterizedTypeReference>() {}); ProfileDto profileDto = new ProfileDto(); profileDto.setIndividualId(responseWrapper.getResponse().getIdentity().get(UIN).textValue());