Skip to content

Postman Settings

IDE Settings

Configure Postman settings in the IDE:

Settings > Other Settings > EasyApi > Postman

SettingDescription
TokenPostman API Token
WorkspacePostman workspace ID
Export ModeHow to handle collections on export (see below)
Build ExampleWhether to build example data in exported collections (default: on)
JSON5 Format TypeWhere to use JSON5 format (see below)
CollectionsModule-to-collection mapping (module:collectionId per line)

Getting a Postman API Key

  1. Log in to Postman
  2. Go to Account Settings > API Keys
  3. Generate a new API Key

Export Mode

ModeDescription
CREATE_NEWAlways create a new collection (default)
UPDATE_EXISTINGTry to update existing collection by module

Config File Rules

The following rules can be set in config files (.easy.api.config):

RuleDescription
postman.hostPostman base URL
postman.prerequestPre-request script
postman.testTest script
postman.class.prerequestClass-level pre-request script
postman.class.testClass-level test script
postman.collection.prerequestCollection-level pre-request event
postman.collection.testCollection-level test event
postman.format.afterPost-format hook

JSON5 Format Type

Controls where JSON5 format is used in exported Postman collections:

TypeDescription
NONENever use JSON5
REQUEST_ONLYUse JSON5 for request bodies only
RESPONSE_ONLYUse JSON5 for response bodies only
EXAMPLE_ONLYUse JSON5 for examples only (default)
ALLAlways use JSON5

Released under the Apache-2.0 License.