class ComplianceController implements Constants {

    @ApiOperation(httpMethod = "POST", value = "Revoking issue exception to the corresponding target type")
    @RequestMapping(path = "/v1/issues/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> revokeIssueException(
            @ApiParam(value = "Provide Issue Id", required = true) @RequestParam(required = true) String issueId) {
        try {
            Boolean isIssueExceptionRevoked = complianceService.revokeIssueException(issueId);
            if (isIssueExceptionRevoked) {
                return ResponseUtils.buildSucessResponse("Successfully Revoked Issue Exception");
            } else {
                return ResponseUtils.buildFailureResponse(new Exception("Failed in Revoking Issue Exception"));
            }
        } catch (ServiceException exception) {
            return ResponseUtils.buildFailureResponse(exception);
        }
    }

}