mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
Add request body to documentation (#435)
This commit is contained in:
@@ -169,6 +169,8 @@ object SourceController {
|
|||||||
summary("Source filters set")
|
summary("Source filters set")
|
||||||
description("Change filters of source with id `sourceId`")
|
description("Change filters of source with id `sourceId`")
|
||||||
}
|
}
|
||||||
|
body<FilterChange>()
|
||||||
|
body<Array<FilterChange>>()
|
||||||
},
|
},
|
||||||
behaviorOf = { ctx, sourceId ->
|
behaviorOf = { ctx, sourceId ->
|
||||||
val filterChange = try {
|
val filterChange = try {
|
||||||
@@ -212,9 +214,10 @@ object SourceController {
|
|||||||
summary("Source manga quick search")
|
summary("Source manga quick search")
|
||||||
description("Returns list of manga from source matching posted searchTerm and filter")
|
description("Returns list of manga from source matching posted searchTerm and filter")
|
||||||
}
|
}
|
||||||
|
body<FilterData>()
|
||||||
},
|
},
|
||||||
behaviorOf = { ctx, sourceId, pageNum ->
|
behaviorOf = { ctx, sourceId, pageNum ->
|
||||||
var filter = json.decodeFromString<FilterData>(ctx.body())
|
val filter = json.decodeFromString<FilterData>(ctx.body())
|
||||||
ctx.future(future { Search.sourceFilter(sourceId, pageNum, filter) })
|
ctx.future(future { Search.sourceFilter(sourceId, pageNum, filter) })
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
|
|||||||
Reference in New Issue
Block a user