Joe Conley Tagged postman Random thoughts on technology, business, books, and everything in between jpc2.org/name/postman Swagger2Postman <table class="image"> <tr> <td><img src="/assets/swagger.png" alt="Swagger Logo" /></td> <td><img src="/assets/postman.jpg" alt="Postman Logo" /></td> </tr> </table> <p>I’ve recently been working on a Swagger-documented API where it’s been necessary to test the API endpoints in different environments. While <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a> is a simple, powerful tool for testing APIs, it doesn’t streamline well across multiple environments, nor does the UI allow for testing certain edge cases (i.e. what response will I get if I omit a required parameter?). However, <a href="https://www.getpostman.com/">Postman</a> is very well-suited for both of these use cases, and so I’ve built a library called <strong>Swagger2Postman</strong> to convert Swagger docs into a Postman JSON collection.</p> <p><strong>Code</strong> - <a href="https://github.com/josephpconley/swagger2postman">https://github.com/josephpconley/swagger2postman</a></p> <p><strong>Live Demo</strong> - <a href="http://app.josephpconley.com/swagger2postman">http://app.josephpconley.com/swagger2postman</a></p> <p>It only works with the <a href="https://github.com/swagger-api/swagger-spec/blob/master/versions/1.2.md">Swagger 1.2 specification</a> as of now so if you have any feedback or want to see it work for Swagger 2.0, let me know in the comments section here or on the project’s <a href="https://github.com/josephpconley/swagger2postman/issues">issues page</a>. Thanks!</p> Thu, 14 May 2015 00:00:00 +0000 jpc2.org/2015/05/14/swagger-2-postman.html jpc2.org/2015/05/14/swagger-2-postman.html