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 for the Books parameter.
  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.