/swag2pm

PHP Script to create Postman collections from Swagger API documentation feeds

Primary LanguagePHP

swag2pm

This little script and class collection should generate Postman collections from Swagger api documentation feeds. Currently only the 1.2 specification is supported and work on 2.0 is only being conducted in my spare time.

Example:

$ ./swag2pm.php
Usage: ./swag2pm.php <swagger source> <collection name>

$ ./swag2pm.php http://petstore.swagger.wordnik.com/api/api-docs petstore
Finished - wrote output to: ./petstore-postman.json

There are sample files included generated by this tool against the Xirrus Management System and the Swagger petstore example. You should be able to import these files direclty into Postman as new collections.