Ketting - The HATEOAS client for javascript
Check out the Wiki for full documentation.
Introduction
The Ketting library is a generic REST client with Hypermedia features.
The library will work with any JSON-based HTTP API, but it gets superpowers
when using it with formats that have support for links, including:
And it even works with HTML links, and HTTP Link Headers.
Ketting is designed to both work in the browser and in Node.js. Additionally,
it has react bindings that will make it work in a way that's
familiar to Apollo-Client users.
Example
const ketting = new Ketting('https://api.example.org/');
const author = await ketting.follow('author');
const authorState = await author.get();
authorState.data.firstName = 'Evert';
await author.put(authorState);
Docs
Notable Features
Ketting is a library that sits on top of Fetch API to provide a RESTful
interface and make it easier to follow REST best practices more strictly.
It provides some useful abstractions that make it easier to work with true
hypermedia / HATEOAS servers. It currently parses many hypermedia formats
and has a deep understanding of links and embedded resources. There's also
support for parsing and following links from HTML documents, and it
understands the HTTP Link: header.
It also has support for 'fetch middlewares', which is used to implement
OAuth2 support, but also opens the door to development of other plugins.
Using this library it becomes very easy to follow links from a single bookmark,
and discover resources and features on the server.
Read further on the Wiki