HALEOAS
HAL Hypermedia REST Client
Supported HTTP Methods:
GET
: supports url templating params using RFC6570HEAD
OPTIONS
PUT
: sends everything except_link
ascontent-type: application/json
POST
PATCH
: conforms to RFC6902 and sendscontent-type:application/json-patch+json
DELETE
Browser support
When running browser tests, a modern web server is expected ^1.1.
- Safari borks by babel-core because of this silliness
Size
- unminified ~3.8kb
- minified ~1.4kb
Running tests
NodeJS
npm test
Browser
npm serve
In your browser, visit http://localhost:3000/test-runner.html
and look in the console.
Usage
BREAKING CHANGE AS OF v0.3.0: All HTTP methods may receive a full request config object + data
and params
A full Request object may be passed into all methods. For mutating methods, a data
JSON parameter may be passed for serializing
to the request body. For all methods a params
Object parameter may be passed for expanding templated urls.
GET
let hal = let resource =
POST
let hal = let resource =
DELETE
let hal = let resource =
PATCH
let hal = let resource =