0.2.10 • Published 7 years ago

generator-cloud-elements-postman v0.2.10

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
7 years ago

CE Platform API Postman Generator

Yeoman generator

NPM

cloud-elements-postman is a Yeoman generator that creates a Postman Collection and Environment Configuration which contains Cloud Elements Platform API calls that demonstrate the usage of the Cloud Elements Platform.

Usage

First, install Yeoman and cloud-elements-postman using npm (we assume you have pre-installed node.js).

npm install -g yo
npm -g install generator-cloud-elements-postman

Either use yo directly and choose Cloud Elements Postman from the menu or, directly, via yo cloud-elements-postman from the command-line.

In addition, you can optionally specify a distinct name for the Postman Collection via an argument: yo cloud-elements-postman NAME

This will generate two files in the current directory:

  • CloudElementsAPIs-.postman_collection.json
  • CloudElementsAPIs-.postman_environment.json

At this time, the collection contains only the following API calls:

  • List accounts GET /accounts
  • Create account POST /accounts
  • List users GET /users
  • Create element instance POST /instances
  • List instances GET /instances
  • List files GET /files
  • List accounts GET /hubs/crm/accounts

Known Issues

For POST /accounts and /POST instances, the Postman Collection contains examples, but upon import, the JSON bodies for these examples are lost. Ref Postman issue 2769. You can see these example JSON bodies in the example_requests directory.

Importing the .postman_environment.json file from the main Postman Import shows an error "Failed to import data: Could not import: TypeError: Cannot read property 'id' of null" but still imports the environment configuration without error. Importing the environment via the Manage Environments dialog Import shows no such error. This error can be ignored.

npm.io

Future

The yeoman generator will provide a more full list of Cloud Elements Platform APIs to choose from in order to customize the Postman Collection. For the full list of APIs, please see the Cloud Elements Documentation.

Developing

See Development notes for notes on how to contribute to this Yeoman generator.

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago