L.9.2 Test using Web API Testing tool (example Postman)

To test this service using the Web API Testing tool, follow these steps:

  1. Create a new request from the tool's New Menu.
  2. Select the request type as GET.
  3. Enter the FTP Rest services URL.
  4. In the headers section set the 'Content-Type= text/html'.
  5. In param tabs of the request add key as 'requestId' and value as the request data for which I want to retrieve data. Example requestId=8.
  6. Press the send button.
  7. The request is submitted to the requested web service.
  8. The service is invoked on the server and the requested/calculated values are shown in the response section of the tool.
  9. This is a secured web service and uses basic authorization. So, the authorization section of the tool should be populated with a valid user Id and password of the FTP application.
  10. The header section of the tool needs additional parameters 'userID' with the value of a valid FTP application User ID.

    This screenshot illustrates how the web service call is made using the tool.

    Figure L-5 Web API Testing Tool (example Postman)


    Web API Testing Tool (example Postman)

Related Topics: