How to use the traverson.jsonHal function in traverson

To help you get started, we’ve selected a few traverson examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github traverson / traverson-hal / haltalk_test / haltalk.js View on Github external
beforeEach(function() {
    api = traverson
            .jsonHal
            .from(rootUri)
            .newRequest()
            .withRequestOptions({
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json'
      }
    });
    callback = sinon.spy();
  });

traverson

Hypermedia API/HATEOAS client for Node.js and the browser

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis