Testing with Postman

Postman is an API development tool we recommend for testing the Developer Connect APIs. It is a GUI REST client that is easy to configure and use. We provide a Developer Connect API collection for you to import into Postman so that you can test Developer Connect endpoints with various parameters.

This document provides general steps for setting up Postman to test Developer Connect APIs only. If you are new to Postman and want to learn more about working in Postman, visit the
Postman Learning Center
for user documentation and training videos.

Install Postman

If you do not already have Postman installed, go to
postman.com
and follow the instructions on the site to download and install it.

Download the Developer Connect Postman Collection and Environment Variables

Developer Connect Postman Collection:

Developer Connect Postman Environment:

Import the Collection into Postman

To import the collection into Postman:

  1. Open Postman app and sign in when prompted. If this is your first time launching Postman, create an account and then sign in.
  2. Open a Workspace by clicking Workspaces from the top navigation menu and selecting a workspace (for example, My Workspace).

  1. Click Import.

  1. In the Import dialog, click Upload Files.

  1. Select the Developer Connect Postman collection you downloaded earlier, and then click Import.

  1. Click Import again.
  2. In the Import dialog, click Upload Files.
  3. Select the Developer Connect postman_environment collection you downloaded earlier, and then click Import.
  4. Next, set the active environment to ENV_Developer_Sharing_EDC. To do so, click the Environment field at the top right of Postman, the select ENV_Developer_Sharing_EDC from the drop-down list.

The environment variables for ENV_Developer_Sharing_EDC appear in the tab that opens.

  1. Edit the following environment variables:
Change this variable…To…
API_SERVERThe ICE Mortgage Technology API Gateway Server.
client_idThe unique identifier for the client application. This is the API client ID portion of the API key, which is available from the Developer Portal > My Account > API Key or from your Encompass Super Administrator.
client_secretThe secret for the client application. This is the API client secret portion of the API key, which is available from the Developer Portal > My Account > API Key or from your Encompass Super Administrator.
instanceThe Encompass instance ID.
smart_client_userEncompass user ID.
smart_client_passwordEncompass password.

Make Your First Developer Connect API Call

Every call made to your instance via Developer Connect must be authenticated.

To make the first call:

  1. In Postman workspace, expand the Developer Connect API collection, then open the call 00a - Get Security Token.

  1. Click Send.

You should see a response with a bearer token to which will be used on subsequent calls.

  1. The “Test" feature in Postman uses javascript to execute code after a response is received. It can be used for many purposes, among them is the ability to set environment variables based on the response. The call to get a token, for instance, has code to add this into a token variable called ACCESS_TOKEN.

From Sample to Useful

One helpful feature of Postman is the ability to generate a code snippet for a specific API call. This is useful for developing and debugging your Developer Connect applications.

To generate a code snippet for an API call:

  1. From any call, click the Code option (</> ) on the right side of the screen.

This will show you a code snippet of that specific call populated with all variables you provided.
(The values below are purposefully not provided for demonstration purposes. For example, loanId and ACCESS_TOKEN are purposefully undefined.)

  1. Choose from one of the many flavors of code snippets.