Skip to content

Commit

Permalink
Remove deprecated controller method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-punko committed Dec 19, 2023
1 parent 985183d commit 805f218
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,6 @@ public void deleteArticle(
articleService.delete(id);
}

// Seems will be deleted
@Deprecated
public List<ArticleDto> readArticles(
@RequestParam(defaultValue = "0") Integer pageNo,
@RequestParam(defaultValue = "50") Integer pageSize,
@RequestParam(defaultValue = "title") String sortBy
) {
Pageable pageRequest = PageRequest.of(pageNo, pageSize, Sort.by(sortBy));
final Page<ArticleDto> articleDtoPage = readArticlesPaged(pageRequest);
return articleDtoPage.getContent();
}

@ApiOperation(value = "Read articles paged", response = Page.class)
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Articles successfully retrieved"),
Expand Down

0 comments on commit 805f218

Please sign in to comment.