Skip to content

URL from rel

WARNING

This API is frozen and deprecated. Please use the fluent API from 0.9.4 on

This method is used internally to resolve a resource's rel, with parameters and templates, into a URL to follow. It is available as a public method in the unlikely event you need to build URLs in a similar fashion.

Signature

The method signature for URL from rel is:

parameterdescription
resourceThe body of a response from a previous request, in HAL format
relThe name of the link relation.
parameters(optional) name/value pairs which will be used to create a query string.
[learn more]
template(optional) if the link is templated, name/value pairs to fill the template.
[learn more]
-> returnsthe URL

Examples

Released under the MIT License.

Released under the MIT License.