mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
refactor: remove openapi annotations from OPDS controllers
This commit is contained in:
parent
51c4617cc4
commit
1638d2b873
2 changed files with 0 additions and 24 deletions
|
|
@ -27,7 +27,6 @@ import org.gotson.komga.domain.service.BookLifecycle
|
|||
import org.gotson.komga.infrastructure.configuration.KomgaSettingsProvider
|
||||
import org.gotson.komga.infrastructure.image.ImageType
|
||||
import org.gotson.komga.infrastructure.security.KomgaPrincipal
|
||||
import org.gotson.komga.infrastructure.swagger.PageAsQueryParam
|
||||
import org.gotson.komga.interfaces.api.CommonBookController
|
||||
import org.gotson.komga.interfaces.api.ContentRestrictionChecker
|
||||
import org.gotson.komga.interfaces.api.dto.MEDIATYPE_OPDS_JSON_VALUE
|
||||
|
|
@ -241,7 +240,6 @@ class OpdsController(
|
|||
url = OpenSearchDescription.OpenSearchUrl(uriBuilder(ROUTE_SERIES_ALL).toUriString() + "?search={searchTerms}"),
|
||||
)
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_ON_DECK)
|
||||
fun getOnDeck(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -272,7 +270,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_KEEP_READING)
|
||||
fun getKeepReading(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -313,7 +310,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_SERIES_ALL)
|
||||
fun getAllSeries(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -361,7 +357,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_SERIES_LATEST)
|
||||
fun getLatestSeries(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -390,7 +385,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_BOOKS_LATEST)
|
||||
fun getLatestBooks(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -448,7 +442,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_COLLECTIONS_ALL)
|
||||
fun getCollections(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -474,7 +467,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_READLISTS_ALL)
|
||||
fun getReadLists(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -500,7 +492,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(ROUTE_PUBLISHERS_ALL)
|
||||
fun getPublishers(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -534,7 +525,6 @@ class OpdsController(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("series/{id}")
|
||||
fun getOneSeries(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -576,7 +566,6 @@ class OpdsController(
|
|||
)
|
||||
} ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("libraries/{id}")
|
||||
fun getOneLibrary(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -618,7 +607,6 @@ class OpdsController(
|
|||
)
|
||||
} ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("collections/{id}")
|
||||
fun getOneCollection(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -663,7 +651,6 @@ class OpdsController(
|
|||
)
|
||||
} ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("readlists/{id}")
|
||||
fun getOneReadList(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import org.gotson.komga.domain.persistence.ReadListRepository
|
|||
import org.gotson.komga.domain.persistence.ReferentialRepository
|
||||
import org.gotson.komga.domain.persistence.SeriesCollectionRepository
|
||||
import org.gotson.komga.infrastructure.security.KomgaPrincipal
|
||||
import org.gotson.komga.infrastructure.swagger.PageAsQueryParam
|
||||
import org.gotson.komga.interfaces.api.CommonBookController
|
||||
import org.gotson.komga.interfaces.api.ContentRestrictionChecker
|
||||
import org.gotson.komga.interfaces.api.OpdsGenerator
|
||||
|
|
@ -292,7 +291,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/keep-reading", "libraries/{id}/keep-reading"])
|
||||
fun getKeepReading(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -335,7 +333,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/on-deck", "libraries/{id}/on-deck"])
|
||||
fun getOnDeck(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -373,7 +370,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/books/latest", "libraries/{id}/books/latest"])
|
||||
fun getLatestBooks(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -415,7 +411,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/series/latest", "libraries/{id}/series/latest"])
|
||||
fun getLatestSeries(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -460,7 +455,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/browse", "libraries/{id}/browse"])
|
||||
fun getLibrariesBrowse(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -521,7 +515,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/collections", "libraries/{id}/collections"])
|
||||
fun getLibrariesCollections(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -563,7 +556,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("collections/{id}")
|
||||
fun getOneCollection(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -607,7 +599,6 @@ class Opds2Controller(
|
|||
)
|
||||
} ?: throw ResponseStatusException(HttpStatus.NOT_FOUND)
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping(value = ["libraries/readlists", "libraries/{id}/readlists"])
|
||||
fun getLibrariesReadLists(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -649,7 +640,6 @@ class Opds2Controller(
|
|||
)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("readlists/{id}")
|
||||
fun getOneReadList(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
@ -712,7 +702,6 @@ class Opds2Controller(
|
|||
return Pair(library, libraryIds)
|
||||
}
|
||||
|
||||
@PageAsQueryParam
|
||||
@GetMapping("series/{id}")
|
||||
fun getOneSeries(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
|
|
|
|||
Loading…
Reference in a new issue