hippie-media

an hypermedia agent, not from the sixties

4 years after

var router = new Router([new CollectionJson()], new HttpClient(), client);

router.follow(`${window.location.origin}/root.json`)
.then(res => {
    return res.items()[0].link('self').follow();
})
.then(res => {
    return res.link('self').follow();
})
.then(res => {
    console.log(res.operations());
});

Related Repositories

awesome-cakephp

awesome-cakephp

A curated list of amazingly awesome CakePHP plugins, resources and shiny things. ...

awesome-ipsum

awesome-ipsum

A curated list of awesome lorem ipsum generators. ...

awesome-cakephp

awesome-cakephp

A curated list of amazingly awesome CakePHP plugins, resources and shiny things. ...