Package dev.inmo.micro_utils.repos.ktor.server.crud

Functions

Link copied to clipboard
fun <ObjectType, IdType> <ERROR CLASS>.configureReadStandardCrudRepoRoutes(originalRepo: ReadStandardCRUDRepo<ObjectType, IdType>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, idsSerializer: KSerializer<IdType>, unifiedRouter: UnifiedRouter)
inline fun <ObjectType, IdType> <ERROR CLASS>.configureReadStandardCrudRepoRoutes(originalRepo: ReadStandardCRUDRepo<ObjectType, IdType>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, idsSerializer: KSerializer<IdType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat, serialFormatContentType: <ERROR CLASS> = standardKtorSerialFormatContentType): <ERROR CLASS>
Link copied to clipboard
fun <ObjectType, IdType, InputValue> <ERROR CLASS>.configureStandardCrudRepoRoutes(baseSubpart: String, originalRepo: StandardCRUDRepo<ObjectType, IdType, InputValue>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>, unifiedRouter: UnifiedRouter)
fun <ObjectType, IdType, InputValue> <ERROR CLASS>.configureStandardCrudRepoRoutes(baseSubpart: String, originalRepo: StandardCRUDRepo<ObjectType, IdType, InputValue>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat, serialFormatContentType: <ERROR CLASS> = standardKtorSerialFormatContentType): <ERROR CLASS>
Link copied to clipboard
fun <ObjectType, IdType, InputValue> <ERROR CLASS>.configureWriteStandardCrudRepoRoutes(originalRepo: WriteStandardCRUDRepo<ObjectType, IdType, InputValue>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>, unifiedRouter: UnifiedRouter)
fun <ObjectType, IdType, InputValue> <ERROR CLASS>.configureWriteStandardCrudRepoRoutes(originalRepo: WriteStandardCRUDRepo<ObjectType, IdType, InputValue>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat, serialFormatContentType: <ERROR CLASS> = standardKtorSerialFormatContentType): <ERROR CLASS>