setDefaultLink

fun setDefaultLink(rel: String, href: String?)

Registers one or more default links for a specific relation type.

These links are used when no links with this relation type are provided by the server. This should only be called during initial setup of the endpoint.

Parameters

rel

The relation type of the link to add.

href

The href of the link relative to this endpoint's URI. Use null to remove any previous entries for the relation type.