On This Page
Using Tufin's REST API with Postman
Overview
Postman is an HTTP client that can be used for testing web services
Downloads and Configurations
-
Download and install the Postman extension (click here for procedure)
-
Navigate to www.getpostman.com.
-
Choose any OS besides Chrome.
- Run the downloaded installation.
Do not select the Chrome extension as Google is reaching end of support for their apps. -
-
Download the Postman collections for Tufin REST APIs.
-
Adjust the Postman environment variables to match your current TOS version (click here for procedure)
When you select an API for execution, the URL details are displayed:
The URL may include postman environment variables surrounded by double-curly brackets, as shown above.
To adjust the variables:
Optional Configurations, Per API Call
Modify the API body to include custom data
GET and DELETE APIs don't require a body, but POST, PUT, and PATCH APIs do. Tufin collections provides a predefined body for these APIs, which you can edit according to your company needs.
- Select the API whose body you wish to edit.
- Navigate to the Body tab (see above image).
-
Edit the body to include your custom data.
-
To modify the content type, see Modify API Format.
-
Click Save .
Modify API Format
From the Header tab, you can configure the input and output formats of the API:
Content-type: The input format
Accept: The desired format of the returned information.
Set Parameters
-
Click Params.
-
Enter the parameter (key, value) pairs.
Ensure you enter the parameters in the correct location.
-
Click Save.
Call an API
- From the sidebar, click on the API you wish to call.
-
Click Send.
The call results appear.