class TipsAndTricksCommentController {

    @ApiOperation(value = "Count comments.")
    @ApiResponses(value = {
        @ApiResponse(code = 200, message = HttpStatuses.OK),
        @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST)
    })
    @GetMapping("/count/comments")
    public int getCountOfComments(Long id) {
        return tipsAndTricksCommentService.countComments(id);
    }

}