Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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

For example, in Windows:

3. Next, start Start the API Manager according to the instructions given in section Running the API Manager. This will populate master data required for the server to start up. 

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

Info
titleNote

Shutting It is necessary to shut down the server before running ant is a mustin this case.

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 Image Added

It executes the UserPopulator.sql which creates two user accounts as "provider1" and "subscriber1", which can be used to login log-in to the API Publisher and API Store respectively.

 

Installing the samples

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

1. Make sure the API manager is started.

2. Execute the APIPopulator.sh (for Linux) or APIPopulator.bat (for Windows) script for each sample.

Starting and Stopping the API Gateway

 

 6. Start the WSO2 API Manager again and log in to the API Publisher (http://localhost:9763/publisher) using username/password as provider1/provider1. Similarly, you should be able to log in to the API Store (https://localhost:9443/store) using username/password as subscriber1/subscriber1.

This basic setup needs to be performed only once for a single API Manager installation. If you want to try multiple samples on the same installation, performing the above procedure once is sufficient.


Excerpt
hiddentrue

WSO2 API Manager Samples