Skip to content

Commit

Permalink
feat(api): search series' books by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 25, 2020
1 parent 2ab3c9c commit 940d5d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ class SeriesController(
@PathVariable(name = "seriesId") seriesId: String,
@RequestParam(name = "media_status", required = false) mediaStatus: List<Media.Status>?,
@RequestParam(name = "read_status", required = false) readStatus: List<ReadStatus>?,
@RequestParam(name = "tag", required = false) tags: List<String>?,
@RequestParam(name = "unpaged", required = false) unpaged: Boolean = false,
@Parameter(hidden = true) page: Pageable
): Page<BookDto> {
Expand All @@ -239,7 +240,8 @@ class SeriesController(
BookSearchWithReadProgress(
seriesIds = listOf(seriesId),
mediaStatus = mediaStatus,
readStatus = readStatus
readStatus = readStatus,
tags = tags
),
principal.user.id,
pageRequest
Expand Down

0 comments on commit 940d5d3

Please sign in to comment.