0.1.5 • Published 7 years ago

kong-admin-proxy v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

kong-admin-proxy [Build Status]

A web proxy microservice that proxies requests to the native Kong's Admin API, while extending it by providing helpful methods for integration.

Summary

Prerequisites

Installation

With npm

From source

Configuration

There is an example configuration file on following path.

Just copy this to /config/local.js and make necessary changes to it. Note that this local.js file is in .gitignore so it won't go to VCS at any point.

Usage

kong-admin-proxy proxies requests to all Kong's admin routes

The microservice registers itself to Kong and can be accessed like:

Request Headers

Extended methods

Create Consumer POST

$ curl -X POST http://kong:8000/kong-proxy/consumers

Create a consumer while associating it with groups and authorizations all at once.

Request Body
Example

Register API POST

$ curl -X POST http://kong:8000/kong-proxy/apis

Register an API while adding required plugins to it as well.

You can also update an already registered API and it's associated plugins by including the API's id property to the request.

#####Request Body

Example

Retrieve consumer credentials GET

$ curl -X GET http://kong:8000/kong-proxy/consumers/{id or username}/credentials

Retrieve all credentials assigned to the specified consumer

Example response

Author

Panagis Tselentis

License