Skip to content

Commit

Permalink
Remove deprecated method of ArticleController
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-punko committed Dec 19, 2023
1 parent 155fe35 commit c9e820e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/by/andd3dfx/controllers/ArticleController.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,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 c9e820e

Please sign in to comment.