1.0.7 • Published 8 years ago

@eoko/kong-client v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
8 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

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago