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
- Click
books.
It expands and displays the POST and GET operations.

- Click the POST icon to display its details.
- Click the Try it out! button.
- Provide values to the Books parameter and then click Execute. You can use the JSON payload in the <BW_HOME>\samples\binding\rest\BookStore\samplejson folder.
- Now click GET to display its details.
- Click Try it out!.
- Click
Execute.
The response displays a list of books returned by the REST service from the database.

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