Hi
First off I wanna say I really like the idea of HAL and this generic rest client. I've been looking for something like this for a while.
There are some improvements to this project I'd like to make. I might end up writing a variant of this but thought I'd share my ideas and see what you thought.
Instead of (or as well as) using callbacks, return the jQuery promise from $.ajax()
This would allow the following:
agent.get()
.then(myFn)
.then(myFn2)
Hi
First off I wanna say I really like the idea of HAL and this generic rest client. I've been looking for something like this for a while.
There are some improvements to this project I'd like to make. I might end up writing a variant of this but thought I'd share my ideas and see what you thought.
Instead of (or as well as) using callbacks, return the jQuery promise from
$.ajax()This would allow the following: