Introduction

The MainView Middleware Administrator Scripting API is provided as a RESTful interface to the MainView Middleware Administrator product. A JavaScript API is also provided that wraps the RESTful API, making writing JavaScript scripts that interact with the MainView Middleware Administrator service convenient. 

The data format used by the REST/JS API is JavaScript Object Notation (JSON), a format that is very consumable by web browsers because of JSON's basis on JavaScript. Libraries are provided in many different programming languages to help create and consume JSON content as well.

Installation

Pre-requisites

Prior to installing the JavaScript API, you must set the JAVA_HOME environment variable appropriately. If no other Java 7 version is available, you can use the Java Run-Time which is included in the product; however, with product updates the Java Run-Time directory will change and you will need to change the path in the environment variable.

On Windows set %JAVA_HOME% to the root directory of the Java installation, on Linux set $JAVA_HOME to the root of the Java installation. You must set it to the root of the Java installation, do not set it to the subsequent bin/java or bin\java.exe executable file.

Windows example:

JAVA_HOME=c:\Program Files\Java\jre1.8.0_72 

Linux example:

JAVA_HOME=/opt/oracle/java

Installing

To install the MainView Middleware Administrator JavaScript API, simply extract the compressed archive (.tar.gz on Linux and .zip on Windows) into a directory of your choice. The compressed archive containing the JavaScript API can be found in the "api" directory of your installation.

There is no specific installation for the REST API, see the Pre-requisites section above.

Was this page helpful? Yes No Submitting... Thank you

Comments