ResourceSchema

annotation class ResourceSchema(val resourceType: String = "", val endpoint: String, val config: KClass<out JsonApiConfig> = JsonApiConfig::class)(source)

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

Parameters

resourceType

The type of the JSON:API resource.

endpoint

The endpoint to use for the resource.

config

The configuration to use for the resource. Defaults to the configuration object that extends JsonApiConfig and marked with DefaultInstance.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard