class RecommendationsController {

    @GetMapping(value = "/v1/recommendations/summary")
    public ResponseEntity<Object> getRecommendationSummary(@RequestParam(name = "ag", required = false) String assetGroup, 
    		@RequestParam(name = "application", required = false) String application, @RequestParam(name = "general", required = true) Boolean general) {
		
		if(!general && StringUtils.isBlank(assetGroup)) {
			return ResponseUtils.buildFailureResponse(new Exception(Constants.ASSET_MANDATORY));
		}
		
		try {
			return ResponseUtils.buildSucessResponse(recommendationsService.getRecommendationSummary(assetGroup,application,general));
		} catch (DataException e) {
			LOGGER.error("Error in getRecommendationSummary "+ e);
			return ResponseUtils.buildFailureResponse(e);
		}
    }

}