Hacker News new | ask | show | jobs
by lilpirate 4437 days ago
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).
2 comments

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/
Aha. I thought environments could only be used for setting additional HTTP headers! Thanks for this.
You can do that with environments: http://www.getpostman.com/docs/environments