class VulnerabilityController implements Constants {

	@RequestMapping(path = "/v1/vulnerabilities/summarybyassets", method = RequestMethod.GET)
	public ResponseEntity<Object> getVulnerabilitySummaryByAssets(
			@RequestParam(name = "ag", required = true) String assetGroup) {
		try {
			return ResponseUtils.buildSucessResponse(vulnerabilityService.getVulnerabilitySummaryByAssets(assetGroup));
		} catch (ServiceException | DataException e) {
			LOGGER.error("Error in getVulnerabilitySummaryByAssets ", e);
			return ResponseUtils.buildFailureResponse(e);
		}
	}

}