class RecommendationsController {

    @GetMapping(value = "/v1/recommendations/summaryByApplication")
    public ResponseEntity<Object> getSummaryByApplication(@RequestParam(name = "ag", required = true) String assetGroup, 
    		@RequestParam(name = "category", required = false) String category) {
		try {
			return ResponseUtils.buildSucessResponse(recommendationsService.getSummaryByApplication(assetGroup,category));
		} catch (DataException e) {
			LOGGER.error("Error in getSummaryByApplication "+ e);
			return ResponseUtils.buildFailureResponse(e);
		}
    }

}