class CorruptionRiskDashboardIndicatorsStatsController extends GenericOCDSController {

    @ApiOperation(value = "Counts the projects and the indicators eligible, grouped by indicator type. "
            + "The 'count' represents the number of indicators eligible, the 'projectCount' represents the number"
            + " of projects eligible.")
    @RequestMapping(value = "/api/totalEligibleProjectsByIndicatorTypeByYear",
            method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json")
    public List<Document> totalEligibleProjectsByIndicatorTypeByYear(
            @ModelAttribute @Valid final YearFilterPagingRequest filter) {
        return totalProjectsByIndicatorTypeByYear(ELIGIBLE_STATS, filter);
    }

}