postman2swagger2
v1.0.0-pa.5
Published
Transform Postman Collection JSON to Swagger v2 JSON
Downloads
6
Maintainers
Readme
postman2swagger2
Convert Postman JSON (version 1) to Swagger version 2 JSON
Currently only supports Postman Collection Version 1 JSON, version 2 support coming soon
We are in Pre-Alpha release phases. What does Pre-Alpha mean? During Pre-Alpha we hope to learn and improve on our tools design, development, requirements, and testing.
Installation
$ npm install -g postman2swagger2
Usage
$ postman2swagger2 -h
Usage: postman2swagger2 [options] <URL|filename>
Convert API descriptions from Postman to Swagger.
Options:
-h, --help output usage information
-V, --version output the version number
-e, --environment <environment> Specifies Postman Environment to use for dynamic values in Postman file.
--host <host> Specifies global host.
-o, --out <out> Specify the path and filename you want to output your swagger document to. Defaults to "./swagger2.json"
Example
$ postman2swagger2 ./apidocs/tests.postman_collection.json --out ../../swagger-file.json
Contributing
Contributions are welcome and encouraged. See CONTRIBUTING.md for instructions.