Package-level declarations

Types

Link copied to clipboard
annotation class Api(val routeOverride: String = "")

An annotation which is used to tag either an API method or (optionally) an API stream object.

Link copied to clipboard
class ApiContext(val env: Environment, val req: Request, val data: Data, val logger: Logger)

A container for a bunch of relevant utility classes that may be needed when responding to an API call.

Link copied to clipboard
typealias ApiHandler = suspend (ApiContext) -> Unit
Link copied to clipboard
class Apis(env: Environment, data: Data, logger: Logger, apiInterceptor: suspend (ApiInterceptorContext) -> Response? = null)

The class which manages all API paths and handlers within a Kobweb project.

Link copied to clipboard
interface ApisFactory

An interface for creating an Apis instance.

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

An annotation which allows for mapping the current file's package name to a different URL name.