I’ve recently started exploring the use of Swagger documentation with our teams that currently use Postman for API test automation. The ability to import a spec and have it created as a collection in postman is great. As the team continues to develop and refactor the APIs and the spec is therefore updated, is there a way to have these updates to the spec synced with the postman collection that was created upon initial import. I’ve see some converters that seem a bit clunky.
Does Postman plan on building this into the tool at some point?
The ability to have this would streamlined would greatly enhance the tool.
Hi @obasekia, Thanks for writing in!
Currently we don’t have a 2 way sync between Postman schema and collection but you can generate new collection from the updated schema and replace the older one. This is just a workaround for now till the time we come up with a solution.
It is definitely in our roadmap and we’ll keep you posted on developments.
The fact that you cant change a mock server’s collection means you break the url for any one every time you make a change to your swagger file and reimport. This makes this whole process very tedious. I would say step 1 would be allowing mock servers to change collections to allow for the already manual task of creating new api, new collection
I’ve added the feedback you’ve currently posted but we’re eager for more to design the best solution possible, please refer to that message and let us know your use-cases either directly on the issue or here.
I remember opening an issue with Postman about refreshing collections from Swagger some years ago (which I can’t find since they reorganised their repos).
Even after all these years this is still not possible - what a joke!
And if I recall correctly there was a period of time when reimporting from existing Swagger issued a prompt if you want to overwrite existing collection or create a new one. Now it just defaults to creating another copy.
This really is a product that completely lost sight of their target audience.
Having a way to update the postman collection in 1 way sync will be an amazing productivity booster, especially at tracking changes to the API in postman.
Postman already has the basic features for this 1 way sync:
1- generate a fork from the existing collection
2- automatically create a PR with the changes from the sync
3- the user gets to choose to merge / resolve conflicts and this allows for a really nice version control of the API in an API specialist software.
I hope the Postman team implements this in the near future
The closed pull request is not doing what is requested here, people wants an automation to pull recurrently the last schema generated by an external swagger definition to keep it updated as people adds more stuff. The main idea of this request is to not need to manually update the definition file but getting sync every N amount of seconds