class CorruptionRiskDashboardIndicatorsStatsController extends GenericOCDSController {

    @ApiOperation(value = "Counts the indicators eligible, and groups them by indicator type and by year/month. "
            + "An indicator that has two types it will be counted twice, once in each group.")
    @RequestMapping(value = "/api/totalEligibleIndicatorsByIndicatorTypeByYear",
            method = {RequestMethod.POST, RequestMethod.GET},
            produces = "application/json")
    public List<Document> totalEligibleIndicatorsByIndicatorTypeByYear(
            @ModelAttribute @Valid final YearFilterPagingRequest filter) {

        return totalIndicatorsByIndicatorTypeByYear(ELIGIBLE_STATS, filter);
    }

}