Skip to content

Multiplatform Ktor schema declarationopensavvy.spine.apiResolvedEndpoint

ResolvedEndpoint

A resolved Endpoint.

The AnyEndpoint interface represents the declaration of an endpoint. For example, GET /api/users/{user} is not a 'real' endpoint. This class, ResolvedEndpoint, represents 'real' endpoints: 'GET /api/users/111' and 'GET /api/users/222' are possible values of this class.

To resolve an endpoint, start by resolving its resource then follow with the endpoint:

println(Root / Users / User("999") / User.get)

Properties

data

val data: E

path

open override val path: Path

resource