WebSphere brand IBM WebSphere Presence Server, Version 7.0

Running the REST API sample

The REST API sample is a J2EE Web application, accessed through a Web browser.

About this task

The default context root is /gui/.

To access the sample application, you will need to use a Web browser–either Internet Explorer or Firefox.

  1. Open the Web browser and enter the REST sample URL. Example: http://server.address:9080/gui/
  2. From the actions listed in the right frame, choose whether you want to publish or fetch.
  3. In the Publish page you can do the following:
    • Set the publish document.
    • Set the user URI name that will be used for the publisher and published users.
    • Publish the document if this is the first document.
    • Modify the document if you have already published information.
    • Delete the document if you have already published information.
    • View the Status of the last request, for example the return code and the Etag number.
  4. In the Fetch page you can do the following:
    • Send a fetch request for a single user.
    • Send a fetch request for a list.
    • View the fetch response (the user/list information) in the main text box.
    • View a formatted list of information by entering the list URI and clicking the Formatted button.
      • In the Formatted List page, you can view the list structure.
      • If one of the list resources has information (pidf information), you can select it and then view the information in the lower text box.



Terms of use
(C) Copyright IBM Corporation 2009. All Rights Reserved.