sapim
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.
Install
Via npm
# 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
Binary download
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.
Usage
Manifests
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 heremaps: my-first-map-name: some-string-key: Some string value
Command-line interface
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
Programmatic usage
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 = ; sapim ;
License
SAP API Management Tools under copyright (c) 2018-present Serban Petrescu Serban.Petrescu@outlook.com
This library is free software, licensed under the Apache License, Version 2.0. See the file LICENSE
in this distribution for more details.