href

inline fun <T : Any> <ERROR CLASS>.href(resource: T): String
inline fun <T : Any> <ERROR CLASS>.href(resource: T, urlBuilder: <ERROR CLASS>)

Constructs a URL for resource.

The class of the resource instance must be annotated with Resource.