Third Party Testing Tools
When testing REST API's it is useful to have a client that allows you to easily GET and POST data to your test system. Postman is a chrome plugin that does this and also allows you to save away your test data.
Please note that Postman is a third party product that we have found useful in our own testing but it is not connected with ETLogic or Seko360.
6.1. Installing and Running Postman
Download Postman for Chrome from the chrome store
Once installed Postman is run from the apps button near the top left of the Chrome window
Copy the token and put this in the token field in postman (you may need to click on the URL Params button to make the field visible
Put in the URL of the REST service you want to test for example: https://hubuat1.supplystream.com/hub/api/echo/v1/hello.xml?token=<token>
Set the type of request in this case to GET
Hit the Send button
The status of the request is displayed along with the output from the server. the output can be viewed in raw or pretty printed
Data can be POSTed by changing the type to POST and providing the required XML or JSON in the text box
Note: When posting JSON message in the request body you need to tell POSTMAN that the message is in JSON format otherwise it will default to XML. To do this set the Headers to Content-Type = application/json as in the example below
6.2. Other REST Testing Tools
A number of other REST testing tools are available such as Advanced REST client which offer similar functionality to Postman. You may want to try a few out to see what best meets your needs.