This utility connects to the Solace Event Portal collects the consumers for an application version and outputs a Postman collections file that can then be imported to Postman. Note that the events are converted to POST requests sent to the Solace PubSub+ broker on the REST Port.
This repository contains one way of using Event Portal with other tools. Check out the Supercharge your Software Development Lifecycle with PubSub+ Event Portal blog to learn about other ways you can use Event Portal to throughout your SDLC.
- git clone https://github.com/SolaceLabs/ep-to-postman.git
- cd ep-to-postman
- npm install
- export SOLACE_CLOUD_TOKEN="my solace cloud token"
- node index.js -a "My Applicaiton Name" -av 0.1.0 -o my_postman_collection.json
Below are the following options
| Flag | Description | Type | Default |
|---|---|---|---|
| -v, --version | Outputs the version number | ||
| -a, --applicationName | The target application in Event Portal | ||
| -av, --applicationVer | The target application version in Event Portal | ||
| -h, --host | Destination Solace PubSub+ Broker in the form of host:port | <protocol>://<host>:<port> |
https://mroyppj81pus7.messaging.solace.cloud:9443 |
| -u, --user | Destination Solace PubSub+ Broker username:password | <username>:<password> |
default:default |
| -o, --output | Destination Solace PubSub+ Broker SEMP credentials | <application_collections> |
|
| --help | Output file name |
To run this cli tool locally
- Clone this repo
npm installnode index --help
To contribute to this CLI tool
- Fork this repo
- Update the package.json version number
- Make a PR
Feature requests are found as issues