Skip to content

Multiplatform Ktor schema declarationopensavvy.spine.apidiv

div

Resolves an endpoint declared in a resolved resource.

Example

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

Resolves the static child resource under this ResolvedResource.

This operator participates in the resource resolution DSL.

Example

val users = Api / Users

Resolves the dynamic child resource under this ResolvedResource by binding its identifier.

The identifier and the target resource are carried by DynamicResource.Identified, typically created via the DynamicResource.invoke operator, e.g. User("123").

This operator participates in the resource resolution DSL.

Example

val user123 = Api / Users / User("123")

Starts resolution from the RootResource and resolves the static child.

Syntactic sugar for this.resolved / child.

Starts resolution from the RootResource and resolves the dynamic child.

Syntactic sugar for this.resolved / child.