💸 Wings Node Api Client
const create =const api =api;;
The client instance (
api in the example above) is an executable function in itself, which will trigger a post request to the given path. The second argument is an optional data object that will be used for the body, the third argument can be any options that will override the default options passed into the
The client also comes with the following extra methods:
// Set a specific header fieldapi;// Shortcut for `.setHeader('Authorization', 'Bearer ...')`api;// Set a specific option (after creating the instance, but storing it on the instance)api;// Set multiple optionsapi;// Get all records for a specific service// It will fetch pages of 100 items (in parallel) until all are loaded!api;
$ yarn test # runs all units tests$ yarn test:watch # runs unit tests when files change
Copyright (c) 2018 Rex Software All Rights Reserved.