Here is a breakdown of how to execute this strategy effectively, focusing on the "Source of Truth" dilemma and security. #191737
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
Body
1. Establishing the Workflow
The biggest hurdle is the Source of Truth. Because Postman’s UI and the local file system don't natively "auto-sync" without their paid Enterprise tiers, you have to pick a direction:
Option A: Repository as Source of Truth (Recommended)
In this flow, any changes to an API must be updated in the JSON files within the repo first.
Option B: Postman App as Source of Truth
Developers work in the Postman GUI and export to the postman/ directory before committing.
2. Handling Environments & Secrets
Your note on keeping secrets out of the repo is critical. The best practice is to use Environment Templates.
3. Automation with Newman
To make this worth the effort, integrate Newman (Postman’s CLI) into your CI/CD pipeline. This turns your collections into an automated regression suite.
Sample CLI Command:
Proposed CI/CD Step (GitHub Actions Example)
4. Documentation Strategy
Your README should be explicit to prevent "Collection Drift." I recommend adding a Naming Convention section:
Next Steps
To get this moving, I'd suggest starting with Option A. It forces the team to treat the API collection as "code," which leads to better-documented endpoints and fewer "it works on my Postman" synchronization issues.
Beta Was this translation helpful? Give feedback.
All reactions