class ComplianceController implements Constants {

    @ApiOperation(httpMethod = "PUT", value = "Close Issues by Rule Details")
    @RequestMapping(path = "/v1/issues/close-by-rule-id", method = RequestMethod.PUT)
    @ResponseBody
    
    public ResponseEntity<Object> closeIssues(
            @ApiParam(value = "Provide valid Rule Details ", required = true) @RequestBody(required = true) RuleDetails ruleDetails) {
        Map<String, Object> response = complianceService.closeIssuesByRule(ruleDetails);
        if (Integer.parseInt(response.get("status").toString()) == TWO_HUNDRED) {
            return new ResponseEntity<>(response, HttpStatus.OK);
        } else {
            return new ResponseEntity<>(response, HttpStatus.FORBIDDEN);
        }
    }

}