class TipsAndTricksController {

    @ApiOperation(value = "Get tips & tricks by tags")
    @ApiResponses(value = {
        @ApiResponse(code = 200, message = HttpStatuses.OK),
        @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
        @ApiResponse(code = 403, message = HttpStatuses.FORBIDDEN),
    })
    @GetMapping("/tags")
    @ApiPageable
    public ResponseEntity<PageableDto<TipsAndTricksDtoResponse>> getTipsAndTricks(
        @ApiIgnore Pageable page,
        @ApiParam(value = "Tags to filter (if no tags, get all)")
        @RequestParam(required = false) List<String> tags
    ) {
        return ResponseEntity.status(HttpStatus.OK).body(tipsAndTricksService.find(page, tags));
    }

}