Versions Compared

Key

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

The API manager comes with a certain number of samples , including APIs from Twitter, YouTube and Yahoo. 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 sample comes with 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.

By default, the samples installation uses the admin user to create samples.

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 HTTP client tool such as cURL (http://curl.haxx.se/)
  • A JavaScript compatible web browser
  • An active Internet connection

Configuring Libraries

You need to configure various libraries before installing examples. To do this, you must run ant inside the <PRODUCT_HOME>/bin directory.

...

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

...

 

Download and install the API Manager using instructions given in section Installation Guide. Next,

1. Open a command line window

2. Go to wso2am-1.0.0/bin

3. Start wso2server.bat (for Windows) or wso2server.sh (for Linux)

4. Wait until you see the message:

Code Block
[2012-06-20 14:47:16,905] INFO - StartupFinalizerServiceComponent Server : WSO2
API Manager-1.0.0-ALPHA
[2012-06-20 14:47:16,905] INFO - StartupFinalizerServiceComponent WSO2 Carbon
started in 40 sec
[2012-06-20 14:47:17,356] INFO - CarbonUIServiceComponent Mgt Console URL :
https://192.168.1.39:9443/carbon/
Info
titleNote
For further installation guidance, refer to Installation Guide.

5. To stop the API Gateway, simply hit Ctrl-C in the command window or choose Shutdown. Restart from the API Manager's Management Console. For more information on the console, refer to section Introducing the Management Console.