2.0.0 • Published 7 months ago
@jota-one/hateoas-parser v2.0.0
hateoas-parser
Javascript HATEOAS parser
API
This library exposes 4 methods.
getEndpoint(index, rel, params, version)
Pick the "rel" endpoint from the "index" dictionary and resolve it with the provided "params" and "version".
parseLinks(result)
Simple function to convert a raw HATEOAS index result to a more usable key-value Hash
parseUrl(url, params)
Does the same as getEndpoint() but with a URL without solving the index-rel-version puzzle before. parseUrl() is internally called by getEndpoint().
getCleanEndpoint(index, rel)
Format an endpoint by simply removing all optional or required paramaters in the querystring
2.0.0--canary.4.6478239114.0
7 months ago
2.0.0
7 months ago
1.2.1--canary.2.4582769950.0
1 year ago
1.3.0
1 year ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.0
3 years ago