Crates.io | postman2openapi-cli |
lib.rs | postman2openapi-cli |
version | 1.2.1 |
source | src |
created_at | 2023-09-13 23:58:44.938037 |
updated_at | 2024-01-31 22:23:44.413117 |
description | Convert a Postman collection to an OpenAPI definition. |
homepage | https://github.com/kevinswiber/postman2openapi |
repository | https://github.com/kevinswiber/postman2openapi |
max_upload_size | |
id | 972083 |
size | 25,117 |
Convert Postman collections to OpenAPI definitions.
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:
<input-file> The Postman collection to convert; data may also come from stdin
OPTIONS:
-f, --output-format <format> The output format [default: yaml] [possible values: yaml, json]
-h, --help Print help information
-V, --version Print version information
postman2openapi collection.json > openapi.yaml
cat collection.json | postman2openapi -f json
Apache License 2.0 (Apache-2.0)