class VulnerabilityController implements Constants {

	@RequestMapping(path = "/v1/vulnerabilities/remediations/summary", method = RequestMethod.GET)
	public ResponseEntity<Object> getRemediationActionsSummary(@RequestParam("ag") String assetGroup,
			@RequestParam(name = "severity", required = false) String severity) {
		Map<String, Object> response = new HashMap<>();

		List<Map<String, Object>> remediationList = new ArrayList<>();
		try {
			remediationList = vulnerabilityService.getRemediationActionsSummary(assetGroup, severity);
		} catch (DataException e) {
			LOGGER.error("Error in getRemediationActionsSummary", e);
			return ResponseUtils.buildFailureResponse(e);
		}

		response.put("actions", remediationList);
		return ResponseUtils.buildSucessResponse(response);
	}

}