ArticleViewerController

@RestController
@RequestMapping(value = ["/api/v1/articles"])
class ArticleViewerController(articleReaderService: ArticleReaderService)

게시글 조회 API

Constructors

Link copied to clipboard
constructor(articleReaderService: ArticleReaderService)

Functions

Link copied to clipboard
@GetMapping(value = ["/{articleId}"])
fun getArticle(@PathVariable articleId: Long, request: HttpServletRequest): ResponseEntity<ArticleResponse>
Link copied to clipboard
@GetMapping
fun getArticles(@PageableDefault(page = 0, size = 10, sort = ["createdAt"], direction = Sort.Direction.DESC) pageable: Pageable, @RequestParam(required = false) keyword: String?): ResponseEntity<PagedModel<ArticleSummaryResponse>>