LocationMethodParser

object LocationMethodParser : IMethodParser

Types

Link copied to clipboard
data class LocationBaseInfo(op: PathOperation, feature: Kompendium, path: String)

Functions

Link copied to clipboard
fun KClass<*>.calculateLocationPath(suffix: String = ""): String
Link copied to clipboard
open fun Route.calculateRoutePath(): String
Link copied to clipboard
open fun defaultValueInjector(param: KParameter): Any
Link copied to clipboard
open fun getDefaultParameterValue(clazz: KClass<*>, prop: KProperty<*>): Any?
Link copied to clipboard
open fun Set<ParameterExample>.mapToSpec(parameterName: String): Map<String, Parameter.Example>?
Link copied to clipboard
open fun parseExceptions(exceptionInfo: Set<ExceptionInfo<*>>, feature: Kompendium): Map<Int, Response>
Link copied to clipboard
open fun parseMethodInfo(info: MethodInfo<*, *>, paramType: KType, requestType: KType, responseType: KType, feature: Kompendium): PathOperation
Link copied to clipboard
open fun parseResponse(responseType: KType, responseInfo: ResponseInfo<*>?, feature: Kompendium): Map<Int, Response>
Link copied to clipboard
inline fun <TParam : Any> processBaseInfo(paramType: KType, requestType: KType, responseType: KType, info: MethodInfo<*, *>, route: Route): LocationMethodParser.LocationBaseInfo
Link copied to clipboard
open fun Kompendium.resolveContent(type: KType, mediaTypes: List<String>, examples: Map<String, Any>): Map<String, MediaType>?
Link copied to clipboard
open fun KProperty<*>.toParameter(info: MethodInfo<*, *>, parentType: KType, parentClazz: KClass<*>, feature: Kompendium): Parameter
Link copied to clipboard
open override fun KType.toParameterSpec(info: MethodInfo<*, *>, feature: Kompendium): List<Parameter>
Link copied to clipboard
open fun KType.toRequestSpec(requestInfo: RequestInfo<*>?, feature: Kompendium): Request?
Link copied to clipboard
open fun KType.toResponseSpec(responseInfo: ResponseInfo<*>?, feature: Kompendium): Pair<Int, Response>?