← Back to Kairo Docs|API Reference (Dokka)

Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Rest(val method: String, val path: String)

Annotations for RestEndpoint instances.

Link copied to clipboard
abstract class RestEndpoint<I : Any, O : Any>

A RestEndpoint implementation defines the API contract for a single REST API endpoint. Implementations must be Kotlin data classes or data objects. See this Feature's README or tests for some examples.

Link copied to clipboard

Functions

Link copied to clipboard
fun <T> KairoType<T>.toKtor(): TypeInfo