sapim

0.0.7 • Public • Published

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 here
maps:
  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 and SAPIM_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:

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 = require("sapim").default();
    sapim.deployManifest("/path/to/my/manifest.yaml")
      .then(function() {
         console.log("Success!");
      });

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.

Readme

Keywords

Package Sidebar

Install

npm i sapim

Weekly Downloads

27

Version

0.0.7

License

Apache-2.0

Unpacked Size

130 kB

Total Files

20

Last publish

Collaborators

  • serban-petrescu