postman-app-support
postman-app-support copied to clipboard
Feature Request: Reload / update an API definition from a URL or local file path
Is there an existing request for this feature?
- [X] I have searched the existing issues for this feature request and I know that duplicates will be closed
Is your feature request related to a problem?
My app generates a swagger.json API definition file which I am importing into a Postman API. From the imported definition, I'm generating a Collection which is synchronised to the definition. I'm not editing the definition in Postman, but when the external definition file changes then I need to reimport it. There doesn't seem to be an easy way to do this.
Describe the solution you'd like
When I import an API definition, I'd like the option for Postman to remember the source URL or local file path, and then have an option to easily reload the definition from the source. Then the collection can be updated using the existing mechanism.
Describe alternatives you've considered
The only way I can find to do it at the moment is to delete the original API definition in Postman and reimport it, or copy and paste the contents of swagger.json over the existing definition in Postman, both of which are a pain. Once I've done that though, it detects the changes and I can automatically update the Collection, which is great.
Additional context
I believe this would be the missing piece of the "Update Collection" feature that people are asking for: https://github.com/postmanlabs/postman-app-support/issues/6722#issuecomment-1781498500
@RichardSinden thanks for raising the request. We are looking into the request and shall revert once we have an update
would be great for postman to poll for updates. i.e. my api is hosted at https://myApi.com/api, my swagger docs are at https://myApi.com/api/docs and the openapi definition is at https://myApi.com/api/docs/json.. I created a postman collection via import at the /json endpoint - now postman polls every x days for updates. Or alternatively, if there was some hook where we could programmatically update a collection when a new version of the api is released.
Either way, this feature would help me a lot.
+1 Manually importing the documentation through each time in the team workspace is proving to be tiring and hard to manage. It would be great if this could be implemented soon.
+1 This would be really useful for my team as we have an openapi generator that generates it from the endpoints and need to somehow update the postman api without copying the whole json manually each time