add batch download api (#436)

* Add POST /downloads endpoint for creating multiple

* Fix review notes

* Add chapter id to API endpoints

* Rewrite batch chapter download to use chapter id instead of mangaId+chapterIndex combination

* Change EnqueueInput format to be more futureproof

* Change endpoint path

* Change endpoint path
This commit is contained in:
Valter Martinek
2022-11-06 22:32:18 +01:00
committed by GitHub
parent 8b20e2b48f
commit 2ac5c1362c
6 changed files with 118 additions and 22 deletions

View File

@@ -110,6 +110,7 @@ object MangaAPI {
path("download") {
get("{mangaId}/chapter/{chapterIndex}", DownloadController.queueChapter)
delete("{mangaId}/chapter/{chapterIndex}", DownloadController.unqueueChapter)
post("batch", DownloadController.queueChapters)
}
path("update") {