Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Convert Postman JSON to Swagger 2 JSON

License

Notifications You must be signed in to change notification settings

Integrate-Archives/postman2swagger2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convert Postman JSON to Swagger 2 JSON

Resources

License

Stars

Watchers

Forks

Packages

No packages published