L.8.2 Test using Web API Testing tool (example Postman)
To test this service using the Web API Testing tool, follow these steps:
- Create a new request from the tool's New Menu.
- Select the request type as POST.
- Enter the FTP Rest services URL.
- In the headers section set the 'Content-Type= application/JSON'.
- We have detailed the request JSON format for all the web services.
- Create the JSON in the required format.
- Copy the JSON and paste it in the Body 'raw section of the tool.
- Press the send button.
- The request is submitted to the requested web service.
- The service is invoked on the server and the requested/calculated values are shown in the response section of the tool.
- This is a secured web service and uses basic authorization. So authorization section of the tool should be populated with a valid user Id and password of the FTP application.
- The header section of the tool needs additional parameters 'userID' with the value of a valid FTP User ID.
The following screenshot illustrates how the web service call is made using the tool.
Figure L-4 Web API Testing Tool (example Postman)
