At Postman, we aim to provide an intuitive way for API producers to build and iterate on APIs. We also pride ourselves on delivering a world-class experience for API consumers by simplifying the process of sending requests. Collections and environments form the basis of interaction between API producers and consumers in the Postman API Platform. Producers update reference collections using pull requests, and consumers can use them via forks to send requests. We have seen so many users rely on these features to develop and consume APIs.
Today, we are excited to announce the launch of forks and pull requests for environments. You can now seamlessly collaborate on environments with the same ease you’ve come to expect from collections.
In many cases, you need to use an environment to send a request. You might duplicate the environment or create a new one and copy over the variables. You can now simply fork an environment, with a descriptive label to indicate what is used for, and use it to send requests. Explore our featured public workspaces to find interesting collections and environments which you can fork and use.
Environments, just like your APIs, are constantly evolving. You may add new variables or change their values when you add new capabilities to your API. To incorporate these changes in your copy of the environment was previously a manual process—you found out new changes and then had to copy them over.
No more! Now, after you fork an environment, if the original environment changes, you will see an option to pull new changes right from the environment tab.
You can also use environment forks to work in a separate context and avoid making accidental changes that may have negative effects on the mocks and monitors using that environment. Once you are happy with the changes, simply merge them back to the original environment.
Merging changes directly will work only if you have an Editor role for the original environment. If you don’t, you can always raise a pull request and ask for a review before your changes can be merged by the environment editor.