← Back to Kairo Docs|API Reference (Dokka)

Package-level declarations

Types

Link copied to clipboard
data class RestEndpointTemplate(val method: HttpMethod, val path: RestEndpointTemplatePath, val query: RestEndpointTemplateQuery, val contentType: ContentType?, val accept: ContentType?)

A REST endpoint template instance represents a specific subclass of RestEndpoint. In fact, it can be created from a RestEndpoint class reference using RestEndpointTemplate.from.

Link copied to clipboard

Part of RestEndpointTemplate that represents the path, including path params. See the KDoc there.

Link copied to clipboard

Part of RestEndpointTemplate that represents query params. See the KDoc there.

Functions

Link copied to clipboard

Converts the template path to Ktor's route format (for example "/users/{userId}").