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:
Mitchell Syer
2022-05-21 06:12:10 -04:00
committed by GitHub
parent a6d012abd9
commit 5b0426a94c
6 changed files with 17 additions and 11 deletions

View File

@@ -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)
}
)