Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed formatting

...

  1. Download WSO2 API-M Analytics to the same location as the WSO2 API Manager distribution and configure it.

  2. Download the WSO2 API Manager sample scenarios.
  3. Unzip the sample-scenarios ZIP file and rename the unzipped folder to sample-scenarios.
  4. Copy the sample-scenarios folder to the <API-M_HOME> folder.
  5. Start the WSO2 API Manager Server.

  6. Go to <API-M_HOME>/sample-scenarios directory and execute the run.sh file. 

    Code Block
    ./run.sh
  7. Enter the scenario number as 9, when prompted.

User credentials

The following are the user  credentials  that you need to use when signing in to the WSO2 API Manager instance that has the sample data populated.

UserUsernamePassword

Super tenant

adminadmin
Store onlyalex@store.abc.com123123
Finance department userjohn@finance.abc.com123123

Implement using WSO2 API Manager

Follow the instructions below to implement the above business scenario using WSO2 API Manger.

  1. Create two different tenants (alex@store.abc.com and john@finance.abc.com) with users (Alex and John respectively), where Alex only has permissions to the API Store but not to the API Publisher, and John with permission to create and publish APIs.
  2. Log in as the admin user and create two new advanced throttling policies (100KKBPerMin and 100KPerMin).

    Image RemovedImage AddedImage Removed

    Image Added
  3. Log in as the admin user and create an API that exposes the mobile phone prices.
    Image Removed Image Added
  4. Engage the new advanced throttle policy, 100KPerMin, for the stock GET request.
    Image Removed Image Added
  5. Log in as John and create a private API that retrieves salary details of the employees.
    Image Removed Image Added
  6. Engage the new advanced throttle policy, 100KKBPerMin, for the stock GET request.
    Image Removed Image Added

  7. Log in as Alex and invoke the APIs in the API Store. 

  8. Log back in as John and check the analytics graphs in the API Publisher to check the API usability statistics,

    Image Removed

    Image Removed

    Image RemovedImage AddedImage AddedImage Added

Info
References

https://wso2.com/library/articles/2016/09/article-generating-insights-with-wso2-api-manager-analytics/#apistore