Skip navigation

Postman®

Postman® is currently one of the most popular tools used in API testing. It simplifies API workflow in testing and development.

Information and download

Postman® is a software development tool. It enables people to test calls to APIs. Postman® users enter data (request). The data is sent to a specific web server address, that returns information (response), and that is presented to the user.

Download the Postman® API Client from the Postman® website 

The software is available for Windows, MacOS and 64-bit Linux distributions.

How to import collections in Postman®

Preliminary actions: download & install Postman® Client

  1. Download Postman® Client from here and install it.
  2. Launch Postman®.

Preliminary actions: import API & settings

  1. Download the JSON configuration files from here and extract it to a folder on your desktop.
  2. In Postman®, click on the “Import” button in the Top-Left Corner.
  3. In the popup window, drag and drop the file “XXX” or click the button “Choose Files” and import the same file.
  4. After importing the file, the APIs will be available in the Navigation Panel on the left

Preliminary actions: importing the environment

  1. Now it’s time to setup the DCP Environment in Postman®. To do this, click on the “Tool Icon” in the top right corner of the tool.
  2. In the new window click on “Choose files” button and select the “XXX” file of the environment
  3. Click on “Import”.

Now your environment is ready to be used.

Preliminary actions: setting up the environment

  1. If not already selected, select “DCP” in the top right corner box. Then click on the “view (eye) icon” on the right to make the settings active.
  2. A new window will appear: click “Edit” in the top right corner.
  3. Enter the information on your DCP account replacing the <INSERT-HERE> strings as show in the image below
    The following attributes are used within the configuration:
    MSISDN = SIM Phone number starting with Mobile Country Code
    IMSI =  International Mobile Subscriber Identity (unique number per SIM)
    Username & Password = provided by DCP for your account
    CustomerId = provided by DCP for your account

4) Save settings by clicking on “Update Button”. Now you will be able to make your first API call.

How to export APIs in different formats

Once you have imported your collection in Postman you can test them directly from its console. If you want to test you APIs using different languages, Postman comes with a native integrated function that generates code snippets to let you use the APIs in your own application.
Different languages are available: NodeJS, Java, PhP, JavaScript, HTTP, cURL and much more.

To generate code for a specific API, follow the steps below:

  1. select the API you want to export from the collection you have previously imported, or from one of your available collections
  2. run the API to check that everything works and that the required parameters are correctly set
  3. click on the "code" icon in the right sidebar of Postman application
  4. select the code language you want to use for export: all the settings and parameters previously declared and tested at point 2 will be automatically included in the code generated, without the need to set them from scratch.
  5. copy the generated code and paste it in your own application

Please note that Postman supports export for one API at a time.

Available resources