Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The API manager Manager binary distribution comes with a number of samples which demonstrate its basic functionality. These samples are located in <PRODUCT_HOME>/samples folder. Inside this directory, you will find sub directories for each sample. Each sub directory contains the relevant configurations, scripts and instructions required to run the relevant sample. Each sample contains an APIPopulator script, which drives the API Manager via a REST API.

...

Before running the samples, ensure that the following are available:

  • JDK 1.6.0_23 or higher and Apache ANT 1.7 or higher installed as mentioned in the product Installation Prerequisites section.
  • A An HTTP client tool such as cURL (http://curl.haxx.se/)
  • A JavaScript compatible web browser
  • An active Internet connection

Configuring Libraries

 

1. Download and install the API Manager according to the instructions given in the Installation Guide. Note that JDK 1.6.0_23 or higher and Apache ANT 1.7 or higher should be installed as mentioned in the Installation Prerequisites section.

2. Your need to configure various libraries before installing examples. To do this, you must run ant inside by typing "ant" from the <PRODUCT_HOME>/bin directory.

3. Start the API Manager. Instructions are given in section Running the API Manager to populate all master data required for the server to start up. 

4. Shut down the API Manager and run 'ant' inside <PRODUCT_HOME>/samples/Data directory.

Info
titleNote

Shutting down the server before running ant is a must.

5. You will see an output similar to following.

Code Block
This step adds two user accounts (provider1 & subscriber1) to WSO2AM's user base.
populate-user-database:
      [sql] Executing resource: .....  /wso2am-1.0.0/samples/Data/UserPopulator.sql
      [sql] 10 of 10 SQL statements executed successfully
 

Two user accounts have been created as "provider1" and "subscriber1", which can be used to login to the API Publisher and API Store respectively.

 

Installing the samples

To install the samples as the admin user: To install it

...