linkTemplate

open override fun linkTemplate(rel: String, variables: Map<String, Any>): URI

Resolves a link template with a specific relation type. Uses cached data from last response if possible.

Tries lazy lookup with HTTP HEAD on cache miss.

Return

The href of the link resolved relative to this endpoint's URI.

Parameters

rel

The relation type of the link template to look for.

variables

Variables for resolving the template.

Throws

if no link template with the specified relation could be found.