postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.81k stars 839 forks source link

Ability to sync Environments seperately to GitHub #4779

Open musanas opened 6 years ago

musanas commented 6 years ago

Hi, We have the Postman- Github integration available, which is great as far as I know it can sync and back up only the postman collections to any Github repository / directory. I would like to check is it possible to sync and backup Environments json files seperately to github. If not, having that ability will help many teams a lot.

For exampe, if I have a node.js app which I use to run postman collections withe the help of Newman, I would like to see my collections, environment json files etc in seperate directories of Node app. This would make my project more structurized and easy to manage

Thanks& Warm Regards Musaffir

stanislav-radionov commented 4 years ago

Hey everyone,

Do we have any updates on this topic?

Thanks in advance, Stas

lineshr commented 4 years ago

hei any update on this feature?

Thanks, Linesh

shashankawasthi88 commented 3 years ago

@musanas @lineshr @stanislav-radionov May I know the workflow that you are trying to achieve by backing up the Environment.

If it is running the Collections using Newman than you can leverage the Postman Cloud APIs in conjunction with Newman to fetch the Collection and Environment from the postman cloud. https://github.com/postmanlabs/newman - Look at the usage segment, to see the use of Newman in conjunction with Cloud APIs

vdespa commented 2 years ago

Currently, this feature is almost useless for collections that rely on environments to have collections work. Quite often, the collection will not work without the environment, so it makes sense to have a backup for both collection and environments.

abhijitkane commented 2 years ago

@vdespa I'd like to understand your use-case better. Are you running these collections in Newman? If so, a temporary workaround could be using collection variables (that will be automatically saved to the repository with the collection). This won't require you to provide any additional environment in the Newman command. In the Postman app UI, selecting an environment will override collection variables, so you needn't change your app workflow.

jagruthi26 commented 2 years ago

@abhijitkane I was looking out for environment backup in github/gitlab. Couldn't find any solution. Posting the issue with only collection back up here.

Problem: I enabled the backup from postman to github/gitlab through the integration, the collections are synced which is good but there is no support for environment backup. This is preventing the automatic trigger of runs as the env.json file changes are not automatically available in the repo. Currently, there is a manual step involved which is exporting and pushing the env.json files to the repo.
If multiple team members are working on the same env.json files, this is an additional step to download and add in the repo. Currently, we have huge collections which are already setup with environment variables and the temporary workaround looks like a major change.

CB-lferreira commented 5 months ago

Hey everyone, Have we any updates on this topic? Thanks in advance,

Luis