aaronhurt / swag2pm

PHP Script to create Postman collections from Swagger API documentation feeds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

PHP Script to create Postman collections from Swagger API documentation feeds


Languages

Language:PHP 100.0%