apiman-admin-client
Node.js client for the Apiman admin API.
This package provides a Node.js client for the Apiman REST services.
It is experimental and still a work in progress.
N.B. This module uses ES6 language features, and as such depends on Node.js version 4.x or higher.
Contributing
Please read the contributing guide
Installation
npm install apiman-admin-client -S
Usage
const apiman = require('apiman-admin-client');
const options = {
baseUrl: 'http://localhost:8080',
username: 'yourAdminUsername',
password: 'yourAdminPassword'
};
apiman(options)
.status()
.then(s => console.log(s.name));
// Apiman default user / password
apiman({ baseUrl: 'http://host:port' })
.gateways()
.then(g => console.log(g));
// All defaults [ localhost ]
apiman({}).plugins().then((p) => console.log(p));
You can use to
- Verify the Apiman status.
- Import / export the Apiman configuration data.
- List, add, delete gateways.
- List all the permissions and permissions by user.
- List, add, delete plugins.
- List and delete roles.
- List and delete policy definitions.
- Get informations (APIs, Clients, etc..) about the current authenticated user.
- Update email and full name of the current authenticated user.
- Get, add, delete an organization.
- Get informations (APIs, Clients, etc..) about specific user.
- Update email and full name for a specific user.
API Documentation
http://bucharest-gold.github.io/apiman-admin-client/
If you have the github rights to do it, you can publish the API documentation by running
./build/publish-docs.sh
. This script will generate the documentation, then clone this
repository into a temporary directory, checkout the gh-pages
branch and update it with
the newly generated documentation.