Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Attr(val name: String = "", val mutable: Boolean = true, val autoTransform: Boolean = true)

Marks a property as an attribute of a JSON:API resource.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class DefaultInstance

This annotation is used to mark a class as the default instance of a class.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Relation(val name: String = "", val mutable: Boolean = true, val autoTransform: Boolean = true)

Annotates a class representing a to-many relationship in a JSON:API resource.

Link copied to clipboard
annotation class ResourceSchema(val resourceType: String = "", val endpoint: String, val config: KClass<out JsonApiConfig> = JsonApiConfig::class)

Annotates a class as a JSON:API resource schema with the given endpoint.