Simple REST Api Client
Simple client implementation based on REST Client for Node.js.
Usage
Create config object:
const config = api: host: 'http://localhost/api' key: 'dev' keyHeader: 'X-Api-Key' clientOptions: null // https://github.com/aacerox/node-rest-client#options-parameters ;
Create client object:
const logger = ; // or use console object, set null for disable loggingconst client = 'simple-rest-api-client';
Call the api method:
client;