Import your environment and request collection - Intergraph Smart Electrical - 2.1 - Help - Intergraph

Intergraph Smart Electrical Smart API Help

Language
English (United States)
Product
Intergraph Smart Electrical
Search by Category
Help
Smart Electrical Web Version
2.1

Environments in Postman allow you set constant values for keys used within requests. You can then edit and manage the values in one place and use them in multiple requests and in multiple locations. You can create your own environment; however, for the purpose of this document, we created an environment that is comprised of several keys, which we frequently use in our requests. This environment is saved as a JSON file for you to import.

  1. Click the gear icon in the top-right corner of Postman and select Manage Environments.

  2. In the Manage Environments window, click the Import button.

  3. Click the button.

  4. Navigate to the location where you downloaded the file TrainingEnvSEL.postman_environment.json and click Open.

  5. Click TrainingEnvSEL to see the list of keys and values.

  6. Select and fill in the relevant values in the Value column, as appropriate for your environment. The values displayed in the red box are only an example.

    For a full list of keys and how to obtain their values, see Key values for Postman used in this tutorial.

    The value of the samServerUri and resourceID keys can be found by running the 01.01 Description request (for details, see GET Requests to Smart Electrical Metadata) and copying the TokenIssuerUri and TokenAudience values respectively from the response.

  7. Click the button and then close the Manage Environments window.

  8. Click the drop-down menu in the upper right corner of Postman and select TrainingEnvSEL.

Import a Collection

The sample queries are grouped together to create a Collection, which you need to import into Postman.

  1. Click the Import button, from the top bar in Postman.

  2. From the IMPORT window, click and navigate to the Demo SEL WebAPI.postman_collection.json.

  3. Click Open.

    A new folder named Demo SEL WebAPI is added to the Collections tab, containing our sample requests.