1.0.7 • Published 9 years ago

@eoko/kong-client v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

kong-admin-client NPM version Build Status Dependency Status Coverage percentage

A simple and dumb kong api wrapper

Installation

$ npm install --save @eoko/kong-client
$ yarn add @eoko/kong-client

Usage

const Kong = require('@eoko/kong-client');
const kong = new Kong('http://localhost:8001');

kong
  .get('/consumers')
  .then(res => console.log(res))
  .catch(err => console.log(err));

You can also use Kong for proxiting the admin api and add security :

const Kong = require('@eoko/kong-client');
const kong = new Kong('http://localhost:8000/admin',{ apiKey: 'sample', apiKeyName : 'apikey' });

kong
  .get('/consumers')
  .then(res => console.log(res))
  .catch(err => console.log(err));

License

MIT © Romain DARY <romain.dary@eoko.fr>

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago