node-kong-admin
v1.0.4
Published
A Kong Admin API Client for NodeJS
Downloads
24
Maintainers
Readme
Support the project
If you find Kong Admin helpful, you can show your support and help me continue maintaining the project by buying me a coffee.
Node Kong Admin
This library is on development stage, so be careful when using it on production environment.
The current version from May 2019 covers all methods listed on https://docs.konghq.com/1.1.x/admin-api/.
Installing
npm install node-kong-admin --save
Using
const KongLib = require('node-kong-admin');
const KongClient = new KongLib({ url: 'http://kong.docker:8001' });
let createData = {
name: 'FirstService',
host: 'localhost'
};
KongClient.service.create(createData, function(err, done) {
if(err) throw new Error(err);
console.log('Created: ', done);
// Do whatever you have todo here
});
We are currently covering the following modules: