hubris
v2.0.1
Published
Hypermedia client for interacting with the Uber hypermedia format.
Downloads
2
Readme
Hubris - TypeScript Uber Hypermedia Client
Hypermedia client for interacting with the Uber hypermedia format.
Examples
import 'isomorphic-fetch';
import { follow, parse, query, relMatch, IUberDocumeny } from 'hubris';
fetch('/people')
.then(parse)
.then(query(relMatch('search')))
.then(data => follow(data, { q: 'John Doe' })
.then(parse)
.then((resultsDoc: IUberDocument) => console.log('Document', resultsDoc));