Testing the POST and GET Operations

An available RESTful service displays the GET operation in the Swagger UI. The POST operation is tested using the JSON service. It is important to test these operations by doing some simple tasks. This section explains how to test the POST and GET operations you just added.

Procedure

  1. Click MyBooks. It expands and displays the POST and GET operations.
  2. Click the POST icon to display its details.
  3. Provide values to the Books parameter. You can use the JSON payload in BW_HOME\samples\binding\rest\BookStore\samplejson folder.
  4. Click the Try it out! button.
  5. Now click the GET icon to display its details.
  6. Click the Try it out! button.
    The response displays a list of books returned by the REST service from the database.


  7. After you have finished, go back to TIBCO Business Studio™ for BusinessWorks™ and click in the Console view to stop the process.