Fork me on GitHub

Resource is the representation of a HAL resource.

$hasLink(rel: string): bool

$hasEmbedded(rel: string): bool

$has(rel: string): bool

$href(rel: string, parameters: Object): string

$link(rel: string): Object

$meta(name: string): *

!! To get a href, use $href instead !!

!! To get a link, use $link instead !!

!! To get an embedded resource, use $request().$get(rel) instead !!

$response(void): Response

$request(void): HalResourceClient