class UserController {

    @GetMapping("/{userId}/habits")
    public ResponseEntity<List<HabitDto>> getUserHabits(@PathVariable @CurrentUserId Long userId,
                                                        @ApiParam(value = "Code of the needed language.")
                                                        @RequestParam String language) {
        return ResponseEntity.status(HttpStatus.CREATED)
                .body(habitStatisticService.findAllHabitsAndTheirStatistics(userId, true, language));
    }

}