Resource

sealed class Resource(source)

Common parent for all resource types.

Users of the library cannot directly subclass this. Instead, they should subclass one of its subtypes.

Inheritors

Properties

Link copied to clipboard

Returns resources that are direct children of the current resource.

Link copied to clipboard

Returns all endpoints that are declared on this resource.

Link copied to clipboard

Returns all endpoints that are declared on this resource or any of its children.

Link copied to clipboard

The complete URL of this resource, starting from the RootResource, to this resource.

Link copied to clipboard

Returns the hierarchy of this resource: following the parent chain.

Link copied to clipboard
abstract val parent: Resource?

The parent resource of this resource.

Link copied to clipboard

The URL segment relating to this specific resource.