Environment Setup

The environment is a group of variables defined in the postman. We can use those variables while we are adding requests to the server.

CXH API Postman Examples.json

To set up an environment:

  1. Open Postman application and click Environments menu.

Environments Tab

  1. Click Plus icon to create a new Environment.
    Add environment.png

  2. Specify the required name to the Environment, and then specify values for the variables such as BaseUrl and auth.

Production endpoint - https://api.syndigo.com
UAT endpoint - https://api.uat.syndigo.com

Note:

In auth variable, specify the auth key which you have generated using the APIs Generate auth tokens via params or Generate auth tokens via payload.

Environments auth

After specifying the variables in the Environment, you can use those variables in the API requests so that the redundancy can be avoided.

Use of the environment's variables.