OpenAPIRoute

abstract class OpenAPIRoute<T : OpenAPIRoute<T>>(val ktorRoute: Route, val provider: CachingModuleProvider)(source)

Inheritors

Constructors

Link copied to clipboard
constructor(ktorRoute: Route, provider: CachingModuleProvider)

Properties

Link copied to clipboard
val OpenAPIRoute<*>.application: Application
Link copied to clipboard
val ktorRoute: Route
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun child(route: Route = this.ktorRoute): T
Link copied to clipboard
inline fun OpenAPIRoute<*>.exitAPI(crossinline fn: Route.() -> Unit)
Link copied to clipboard
fun <R : Any> getAcceptMap(type: KType): List<Pair<ContentType, List<SelectedSerializer>>>
Link copied to clipboard
fun List<SelectedParser>.getBodyParser(contentType: ContentType): BodyParser
Link copied to clipboard
fun <B : Any> getContentTypesMap(type: KType): List<Pair<ContentType, List<SelectedParser>>>
Link copied to clipboard
Link copied to clipboard
fun <P : Any, R : Any, B : Any> handle(paramsType: KType, responseType: KType, bodyType: KType, pass: suspend OpenAPIRoute<*>.(pipeline: RoutingContext, responder: Responder, P, B) -> Unit)
Link copied to clipboard
inline fun <T : OpenAPIModule> mapContentTypes(noinline fn: T.() -> List<ContentType>): List<Pair<ContentType, List<T>>>