Tool for generating a Postman collection from an API Blueprint, or an API Blueprint hosted on Apiary.
Supports
- API Blueprint
- API Blueprint AST, which can be generated by Drafter
- Fetching an API Blueprint from Apiary API
Drafter is required if you want to use API Blueprint/Apiary API.
To install on OS X:
brew install --HEAD https://raw.github.com/apiaryio/drafter/master/tools/homebrew/drafter.rb
pip install apiary2postman
apiary2postman json blueprint.json --output postman.json
apiary2postman blueprint some.blueprint > postman.dump
cat some.blueprint | apiary2postman blueprint > postman.dump
apiary2postman api my_api > postman.dump
apiary2postman --only-collection api my_api > postman.collection
It's also possible to specify the output file using the --output
.
apiary2postman json some.json > postman.dump
cat some.json | apiary2postman json > postman.dump