commonMain.me.nathanfallet.ktorx.routers.IChildModelRouter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktor-routers-jvm Show documentation
Show all versions of ktor-routers-jvm Show documentation
Generic routers for Ktor projects.
package me.nathanfallet.ktorx.routers
import io.ktor.server.application.*
import io.ktor.util.reflect.*
import io.swagger.v3.oas.models.parameters.Parameter
import me.nathanfallet.ktorx.controllers.IChildModelController
import me.nathanfallet.usecases.models.IChildModel
import kotlin.reflect.KClass
interface IChildModelRouter, Id, CreatePayload : Any, UpdatePayload : Any, ParentModel : IChildModel, ParentId> :
IRouter {
val modelTypeInfo: TypeInfo
val createPayloadTypeInfo: TypeInfo
val updatePayloadTypeInfo: TypeInfo
val controller: IChildModelController
val controllerClass: KClass>
val parentRouter: IChildModelRouter?
val route: String
val id: String
val prefix: String
val routeIncludingParent: String
suspend fun get(call: ApplicationCall): Model
fun getOpenAPIParameters(self: Boolean = true): List
}