@solace-community/asyncapi-to-postman
v1.0.2
Published
This CLI tool takes in an asyncapi file and converts it to a postman collection
Downloads
4
Keywords
Readme
AsyncAPI to Postman Collections
This utility takes in an asyncAPI file as an input parameter and outputs a Postman collection. Note that the events are converted to POST requests sent to the Solace PubSub+ REST Port
How to run
There are two ways to run this utility
npx @solace-community/asyncapi-to-postman -f <path_to_asyncAPI_file> [OPTIONS]
ORnpm install @solace-community/asyncapi-to-postman -g
then execute command from anywhere in terminal viaasyncapi-to-postman -f <path_to_asyncAPI_file> [OPTIONS]
Below are the following options
| Flag | Description | Type | Default |
| ------------- | ---------------------------------------------------------- | ----------------------- | -------------------------------- |
| -v, --version | Outputs the version number | | |
| -h, --host | Destination Solace PubSub+ Broker in the form of host:port | <host>:<port>
| http://localhost:9000
|
| -u, --user | Destination Solace PubSub+ Broker username:password | <username>:<password>
| default:default
|
| -s, --semp | Destination Solace PubSub+ Broker SEMP credentials | <username>:<password>
| admin:admin
|
| -o, --output | Destination Solace PubSub+ Broker SEMP credentials | <username>:<password>
| admin:admin
|
| --help | Output file name | | <asyncAPIFileName_collections>
|
Development
To run this cli tool locally
- Clone this repo
npm install
node index --help
Contribution
To contribute to this CLI tool
- Fork this repo
- Update the package.json version number
- Make a PR