Viewing the WADL representation

From the REST API test tool, you can access a WADL representation of request and response elements, and their documentation.

About this task

From the REST API test tool, you can open and save the WADL file that represents the Rule Execution Server REST API and its documentation. You might find this format useful, for example, to read the documentation of methods and parameters while you write requests in the graphical tool.
If you want to import the WADL code from an external tool, use this type of address:
RESConsoleContext/apiauth/DecisionServer.wadl
For example: http://localhost:9080/res/apiauth/DecisionServer.wadl

Procedure

  1. Sign in to the Rule Execution Server console as an administrator and click the REST API tab to display the test tool.
  2. In the REST API tab, click the link next to REST API WADL file.

    You are prompted to open or save the file. The graphical user interface for this action depends on your browser.

  3. Optional: If you want to include the .xsd files in the .wadl file for more usability, specify the inline parameter manually:
    1. Right-click REST API WADL file.
    2. Select Copy Link Location or the equivalent command for your browser.
    3. Paste the URL into the address field of another browser tab or window.
    4. Type ?inline=true after the URL and press ENTER.
      Note: On application servers other than WebSphere® Application Server, you do not need to specify =true.
      The generated WADL code contains xs: entries instead of include href="DecisionServer.wadl/filename.xsd" references.

What to do next

You can open the WADL file in a text editor.