Multiplatform Ktor schema declaration • opensavvy.spine.api • hierarchy
hierarchy¶
Returns the hierarchy of this resource: following the parent chain.
For example, if we declare a resource:
object Api : RootResource("v1") {
object Users : StaticResource("users") {
object User : DynamicResource("user")
}
}
then the hierarchy of each of them is their path:
-
Api:[Api] -
Api.Users:[Api, Users] -
Api.Users.User:[Api, Users, User]