class ComplianceController implements Constants {

    @ApiOperation(httpMethod = "POST", value = "Revoking issue exception to the corresponding target type")
    @RequestMapping(path = "/v2/issue/revoke-exception", method = RequestMethod.POST)
    @ApiResponses(value = { @ApiResponse(code = 200, message = "Successfully Revoked Issue Exception"),
            @ApiResponse(code = 401, message = "You are not authorized to Revoke Issue Exception"),
            @ApiResponse(code = 403, message = "Revoke IssueException is forbidden") })
    @ResponseBody
    
    public ResponseEntity<Object> revokeIssuesException(
            @ApiParam(value = "Provide Issue Id", required = true) @RequestBody(required = true) RevokeIssuesException revokeIssuesException) {
        try {
            if(revokeIssuesException.getIssueIds().isEmpty()) {
                return ResponseUtils.buildFailureResponse(new Exception("Atleast one issue id is required"));
            }
            return ResponseUtils.buildSucessResponse(complianceService.revokeMultipleIssueException(revokeIssuesException.getIssueIds()));
        } catch (ServiceException exception) {
            return ResponseUtils.buildFailureResponse(exception);
        }
    }

}