ohmit-haleoas
v1.1.15
Published
Connect via haleoas in ohmit
Downloads
6
Readme
Ohmit-Haleoas
Connecting via haleoas with ohmit.
Usage
import ohmit from ‘ohmit’
import ohmitHaleoas from ‘ohmit-haleoas’
let resourceFactory = ohmitHaleoas({ fetch: myFetchImplementation })
let ohm = ohmit({ resourceFactory })
let q = {
_root: ‘http://my.api.com’
, about: ‘/about’
}
ohm.execute(q).then({ results} => {
results.about[0].self() == ‘http://my.api.com/about’ // true
})