← Back to Kairo Docs|API Reference (Dokka)

Rest

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

Annotations for RestEndpoint instances.

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Accept(val value: String)

Declares the response body MIME type (such as "application/json").

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class ContentType(val value: String)

Declares the expected request body MIME type (such as "application/json").

Properties

Link copied to clipboard
Link copied to clipboard