Convert Postman collections to OpenAPI definitions.
Try it on the Web: https://kevinswiber.github.io/postman2openapi/
Archives of precompiled binaries for postman2openapi are available for Windows, macOS and Linux.
Linux binaries are static executables. Windows binaries are available either as built with MinGW (GNU) or with Microsoft Visual C++ (MSVC). When possible, prefer MSVC over GNU, but you'll need to have the Microsoft VC++ 2015 redistributable installed.
For Rust developers, installation is also available via Cargo. Installing Rust and Cargo
To install the latest published version on crates.io, use:
cargo install postman2openapi-cli
To install from the latest on GitHub, use:
cargo install --git https://github.com/kevinswiber/postman2openapi postman2openapi-cli
``` USAGE: postman2openapi [OPTIONS] [input-file]
ARGS:
OPTIONS:
-f, --output-format
postman2openapi collection.json > openapi.yaml
cat collection.json | postman2openapi -f json
npm install postman2openapi
```js const collection = require('./collection'); // any Postman collection JSON file const { transpile } = require('postman2openapi');
// Returns a JavaScript object representation of the OpenAPI definition. const openapi = transpile(collection);
console.log(JSON.stringify(openapi, null, 2)); ```
Apache License 2.0 (Apache-2.0)