class UserController {

    @ApiOperation(value = "Find statistic about user habits.")
    @GetMapping("/{userId}/habits/statistic")
    public ResponseEntity<CalendarUsefulHabitsDto> findInfoAboutUserHabits(@PathVariable @CurrentUserId Long userId) {
        return ResponseEntity.status(HttpStatus.OK)
                .body(habitStatisticService.getInfoAboutUserHabits(userId));
    }

}