News for hackers. Stuff that matters.
Re:Postman: a powerful HTTP client (for Chrome) to test web ... by lilpirate on Saturday April 19, 2014 @11:30PM (#7615731)
Postman works great. The only feature I would like to see added is to somehow easilu swap a base URL in requests. So I have to maintain just one collection per API and not multiple collections for multiple API deployments (production, testing, staging).
Re:Postman: a powerful HTTP client (for Chrome) to test web ... by redwoolf on Sunday April 20, 2014 @12:01AM (#7615797)
You can do this by using the environments feature. Create an environment and add a key to that environment to represent the base URL. Then in the the URL line replace your base URL with the reference to the key. For example http://{{base-url}}/api/
Re:Postman: a powerful HTTP client (for Chrome) to test web ... by lilpirate on Sunday April 20, 2014 @12:07AM (#7615810)
Aha. I thought environments could only be used for setting additional HTTP headers! Thanks for this.
Re:Postman: a powerful HTTP client (for Chrome) to test web ... by sqren on Saturday April 19, 2014 @11:59PM (#7615795)
You can do that with environments: http://www.getpostman.com/docs/environments