Skip to content

Commit

Permalink
Removed Set Items
Browse files Browse the repository at this point in the history
  • Loading branch information
GOKULRAJ136 committed Apr 13, 2023
1 parent 83ea637 commit 4e51f6f
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,13 @@ public class ClientManagementController {
@Autowired
AuditUtil auditUtil;

String msg = "mosip.clientmanagement.clients.retrieve";

String version = "1.0";

@RequestMapping(value = "/oidc/client", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseWrapper<ClientDetailResponse> createClient(
@Valid @RequestBody RequestWrapper<ClientDetailCreateRequest> requestWrapper) throws Exception {
var clientRespDto = clientManagementService.createOIDCClient(requestWrapper.getRequest());
var response = new ResponseWrapper<ClientDetailResponse>();
auditUtil.setAuditRequestDto(ClientServiceAuditEnum.CREATE_CLIENT,requestWrapper.getRequest().getName(),"clientID");
response.setId(requestWrapper.getId());
response.setVersion(requestWrapper.getVersion());
response.setResponse(clientRespDto);
return response;
}
Expand All @@ -51,8 +46,6 @@ public ResponseWrapper<ClientDetailResponse> updateClient(@PathVariable("client_
var clientRespDto = clientManagementService.updateOIDCClient(clientId, requestWrapper.getRequest());
var response = new ResponseWrapper<ClientDetailResponse>();
auditUtil.setAuditRequestDto(ClientServiceAuditEnum.UPDATE_CLIENT, clientId, "clientID");
response.setId(requestWrapper.getId());
response.setVersion(requestWrapper.getVersion());
response.setResponse(clientRespDto);
return response;
}
Expand All @@ -62,8 +55,6 @@ public ResponseWrapper<ClientDetail> getClient(@PathVariable("client_id") String
throws Exception {
var response = new ResponseWrapper<ClientDetail>();
response.setResponse(clientManagementService.getClientDetails(clientId));
response.setId(msg);
response.setVersion(version);
return response;
}
}

0 comments on commit 4e51f6f

Please sign in to comment.