-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postman integration into CI/CD pipline for creating and updating postman collections #7555
Comments
Hi @ducka, thanks for writing to us. We are aware of the need to keep collections and API documentation up to date by integrating with CI/CD pipeline. We are working on initiatives to help resolve this need. Could you please take some time to help us understand how you 'currently' manage your workflow, specifically, how do you ensure that your API documentation is up to date with any new changes deployed to production? Understanding your workflow will help us design a better experience around the solution. |
@ducka We allow generation of collection from OpenAPI specifications via an API call. What can be tricky is to create/update a Run in Postman button from the CI/CD pipeline. How do you update your specification and documentation to keep up with the changing API? |
HI @Raja-Simha and @sankalp0o Not sure if this is the right thread, but I don't want to create duplicates, let me know if you want me to create a new ticket, please. We are facing a similar challenge in my organisation: we have set up a CI/CD pipeline so when we update the openapi schema in our repository and the build passes, the pipeline automatically updates the relevant API version in postman. I know that it's possible to generate a documentation for the api using the generate collection button but, once generated, the documentation doesn't seem to keep up to date when a changes is introduced on the api schema. I assume this is an expected behaviour to avoid that the wrong documentation would go public by mistake. Our documentation is private, it's consumed by other teams to build different components and our APIs are still in development. We build them iterating in sprints so data contract are subjected to amendment and the schema changes almost daily. Although part of the update is done by the CI/CD pipeline, we are forced to go into postman, generate a new documentation and delete the old one when we want to update it. Are there any plans to create documentation that auto-updates or add some sort of update documentation button (and ideally an endpoint for it so we can call it from our pipeline)? Thanks |
Hey @SimoTod , I have one question for you, do you add anything to the documentation after generating it from schema or do you use it as is? |
Thanks @sankalp0o |
@sankalp0o - heard the same use case for another enterprise company today. |
@sankalp0o @Raja-Simha This feature will really improve our full pipeline so that our documentation never falls behind of what has been deployed. |
+1 for this. The only thing stopping us from using postman across the board is that the documentation can't be self hosted and auto-updated by a jenkins job |
This is related to what I am trying to achieve. |
@sankalp0o @SimoTod @andmoredev |
@ajcastro I didn't and I stopped looking into it eventually |
@SimoTod how is your workflow now? |
I'm currently doing a lot of research for my company in how we can propagate API Documentation (via the Swagger/Open API Spec) from our Microservices to our API Gateway product (like Azure API Management) and our API Documentation product (like Readme.io). My aim is to do this in such a way that our publicly facing API Documentation is always kept up to date as new changes are deployed to the public via our CI/CD pipeline.
In addition to this it woud be great if we could also keep our shared team collections in Postman up to date with the latest API Definitions we publish. I'd also love to stick a "Run with postman" button in our ReadMe.io API Documentation that allows our customers to create collections based off our latest published API Definitions.
I don't know if this is at all possible with Postman as it stands. With my research to date I've not found any way to achieve this with postman in an automated way that I could integrate into a CI/CD pipeline.
The text was updated successfully, but these errors were encountered: