class ComplianceController implements Constants {

    @RequestMapping(path = "/v1/patching", method = RequestMethod.GET)
    public ResponseEntity<Object> getPatching(@RequestParam("ag") String assetGroup) {
        if (Strings.isNullOrEmpty(assetGroup)) {
            return ResponseUtils.buildFailureResponse(new Exception("Asset group is mandatory"));
        }
        OutputDTO output = null;
        try {
            output = new OutputDTO(complianceService.getPatching(assetGroup, null,null));
        } catch (ServiceException e) {
           return complianceService.formatException(e);
        }
        return ResponseUtils.buildSucessResponse(output);
    }

}