mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 15:34:17 +01:00
parent
d3ef49a818
commit
76caa4de39
2 changed files with 2 additions and 4 deletions
|
|
@ -4,14 +4,13 @@ import io.swagger.v3.oas.annotations.Parameter
|
|||
import io.swagger.v3.oas.annotations.Parameters
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn
|
||||
import io.swagger.v3.oas.annotations.media.ArraySchema
|
||||
import io.swagger.v3.oas.annotations.media.Content
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Parameters(
|
||||
Parameter(
|
||||
description = "Author criteria in the format: name,role. Multiple author criteria are supported.",
|
||||
`in` = ParameterIn.QUERY, name = "author", content = [Content(array = ArraySchema(schema = Schema(type = "string")))]
|
||||
`in` = ParameterIn.QUERY, name = "author", array = ArraySchema(schema = Schema(type = "string"))
|
||||
)
|
||||
)
|
||||
annotation class AuthorsAsQueryParam
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.Parameter
|
|||
import io.swagger.v3.oas.annotations.Parameters
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn
|
||||
import io.swagger.v3.oas.annotations.media.ArraySchema
|
||||
import io.swagger.v3.oas.annotations.media.Content
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
|
|
@ -40,7 +39,7 @@ annotation class PageableWithoutSortAsQueryParam
|
|||
),
|
||||
Parameter(
|
||||
description = "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.",
|
||||
`in` = ParameterIn.QUERY, name = "sort", content = [Content(array = ArraySchema(schema = Schema(type = "string")))]
|
||||
`in` = ParameterIn.QUERY, name = "sort", array = ArraySchema(schema = Schema(type = "string"))
|
||||
)
|
||||
)
|
||||
annotation class PageableAsQueryParam
|
||||
|
|
|
|||
Loading…
Reference in a new issue