class UserController {

    @ApiOperation(value = "Get available habit dictionary for current user.")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = HttpStatuses.OK),
            @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
            @ApiResponse(code = 403, message = HttpStatuses.FORBIDDEN)
    })
    @GetMapping("/{userId}/habit-dictionary/available")
    public ResponseEntity<List<HabitDictionaryDto>> getAvailableHabitDictionary(
            @ApiParam("Id of current user. Cannot be empty.")
            @PathVariable @CurrentUserId Long userId,
            @ApiParam(value = "Code of the needed language.")
            @RequestParam @ValidLanguage String language) {
        return ResponseEntity
                .status(HttpStatus.OK)
                .body(userService.getAvailableHabitDictionary(userId, language));
    }

}