StaticResource

constructor(slug: String, parent: Parent)(source)

Creates a new StaticResource. The passed slug should be a single word, which represents the hierarchy between this endpoint and its parent.

Parameters

Parent

The type of the direct parent of this resource. Because of restrictions of the Kotlin language, it must be specified explicitly even if it already appears in the line because it is passed to parent.