SAP API Manager Tools
A suite of tools for deploying and building SAP API Manager API proxies and key-value maps. Check out the wiki for more information.
# If you just want to use the command line interface:
npm install sapim -g
# If you want to use the package during development or build-time:
npm install sapim --save-dev
# If you want to use the API during runtime:
npm install sapim --save
For using the library purely as a command line tool, a binary version (for x64 OS) can be downloaded from the releases section. This binary exexcutable does not depend on the presence of NodeJS or NPM on your system.
The package uses YAML or JSON-based manifests for describing the API Manager artifacts. These manifest must adhere to the schema described by manifest.schema.json
.
proxy:
name: my-test-proxy
path: ./my-test-proxy
templated: true
placeholders:
some-placeholder-name: My string value here
another-placeholder: Another string value here
maps:
my-first-map-name:
some-string-key: Some string value
To use the commands that imply communicating with the API Manager, you need to provide a user, password and host for the library to use. You have two options for specifying them:
- Using the environment variables
SAPIM_USERNAME
,SAPIM_PASSWORD
andSAPIM_HOST
. - Using a .env file for loading the environment variables mentioned above.
- Using a .sapim file.
For more details, check out the configuration wiki page.
The following commands are available:
- build commands
- deployment commands
- template commands
- misc commands
All the above commands have a corresponding method exposed as part of the library's public API. You can read more about using it in the corresponding wiki page and you can find the reference documentation on GitHub Pages.
Example usage:
var sapim = require("sapim").default();
sapim.deployManifest("/path/to/my/manifest.yaml")
.then(function() {
console.log("Success!");
});
SAP API Management Tools under copyright (c) 2018-present Serban Petrescu [email protected]
This library is free software, licensed under the Apache License, Version 2.0. See the file LICENSE
in this distribution for more details.