class PatchingController implements Constants {

    @RequestMapping(path = "/v1/patching/topnoncompliantapps", method = RequestMethod.GET)
    public ResponseEntity<Object> getTopNonCompliantApps(@RequestParam(name = "ag", required = true) String assetGroup) {
        ResponseData response = null;
        try {
            response = new ResponseData(patchingService.getNonCompliantNumberForAG(assetGroup));
        } catch (ServiceException e) {
            return complianceService.formatException(e);
        }
        return ResponseUtils.buildSucessResponse(response);
    }

}