mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-15 16:54:09 -05:00
Docs improvements (#359)
* Use Array since Javalin OpenAPI requires it to read the list generics * Use custom Pager class for documentation
This commit is contained in:
@@ -128,7 +128,7 @@ object MangaController {
|
||||
ctx.json(CategoryManga.getMangaCategories(mangaId))
|
||||
},
|
||||
withResults = {
|
||||
json<List<CategoryDataClass>>(HttpCode.OK)
|
||||
json<Array<CategoryDataClass>>(HttpCode.OK)
|
||||
}
|
||||
)
|
||||
|
||||
@@ -205,7 +205,7 @@ object MangaController {
|
||||
ctx.future(future { Chapter.getChapterList(mangaId, onlineFetch) })
|
||||
},
|
||||
withResults = {
|
||||
json<List<ChapterDataClass>>(HttpCode.OK)
|
||||
json<Array<ChapterDataClass>>(HttpCode.OK)
|
||||
httpCode(HttpCode.NOT_FOUND)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user