2.1.4 • Published 4 years ago

kong-api-client v2.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

kong-api-client

Build Status codecov

Desciption

This is a sdk, to the Kong Gateway Admin API https://konghq.com/solutions/gateway/. The implemented endpois are:

  • Services
  • Custumers
  • Plugins
  • Routes

The version of the kong api, is 1.1.x decribed on https://docs.konghq.com/1.1.x/getting-started/introduction

Is possible to find examples on the examples folder, and the complete reference guide to this lib on the documentation folder.

How connect to the kong instance

let KongApi = require('../../index.js')
let config = {
    admin_url: 'http://' + process.env.KONG_IP + ':8001'
}
let kong = new KongApi(config)
kong.init()

How save new service

let KongApi = require('../../index.js')
let config = {
    admin_url: 'http://' + process.env.KONG_IP + ':8001'
}
let kong = new KongApi(config)
kong.init()

How update new service

let KongApi = require('../../index.js')
let config = {
    admin_url: 'http://' + process.env.KONG_IP + ':8001'
}
let kong = new KongApi(config)
kong.init()

Save a new custumer

let KongApi = require('../../index.js')
let config = {
    admin_url: 'http://' + process.env.KONG_IP + ':8001'
}
let kong = new KongApi(config)
kong.init()

Complete documentation

Init Api

contructor Services Api domains Route Api routes Consumers Api consumers Plugin Api plugins

Need fix

  • Better error msg in case of offline kong server
  • User jest expect thorw on the tests

Road Map

  • add unit tests
  • add a dockerfile to up kong
  • add the plugins on the consumers (auth)
  • create the documantation
  • add the custom exception
  • add routes capabilite to add itens (plugins, consumers)
2.1.4

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.5.6

6 years ago

1.5.41

6 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.0.0

6 years ago