This documentation is for WSO2 API Manager 1.8.0 View documentation for the latest release.
Page Comparison - Deploying and Testing a Wikipedia API (v.3 vs v.4) - API Manager 1.8.0 - WSO2 Documentation

Versions Compared


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


  1. If you haven't done so already, start the API Manager and log in to the API Publisher(http://localhost:9763/publisher) using credentials provider1/provider1.
  2. There are no APIs created yet. To create one and publish it to the API Store, run the following:
    • On Linux: <APIM_HOME>/samples/WikipediaAPI/
    • On Windows: <APIM_HOME>/samples/WikipediaAPI/APIPopulator.bat
  3. Refresh the API Publisher to see the Wikipedia API created.
  4. You can now access Wikipedia through this newly-deployed API. Log in to the API Store (http://localhost:9763/store) using credentials subscriber1/subscriber1.
  5. Select the Applications tab at the top of the page, and create a new application. Provide any name you like.
  6. Select the APIs tab at the top of the page, select the WikipediaAPI API and subscribe to it using the newly-created application.
  7. Go to the My Subscriptions tab and select your application. Click the Generate button associated with the production system to obtain an application access token.
  8. You are now ready to invoke the API. Copy and paste following into a new console and execute it. Be sure to replace the string '9nEQnijLZ0Gi0gZ6a3pZICktVUca' with the application access token you obtained earlier.

    Code Block
    curl -H "Authorization :Bearer 9nEQnijLZ0Gi0gZ6a3pZICktVUca" ""
  9. You must see the JSON result from the Wikipedia API on you console. For example,

    Code Block
    {"query":{"pages":{"5982813":{"pageid":5982813,"ns":0,"title":"MainPage","revisions":[{"contentformat":"text/x-wiki","contentmodel":"wikitext", "*":"#Redirect [[Main Page]]\n\n{{Redr|mod|rcc}}"}]}}}}... 

    See for more information about the Wikipedia API. You can try out various API actions and features similar to step 9.