Refresh API mocks and send OpenAPI diff alerts with GitHub and Postman
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Set: Config (Edit Fields (Set)): sets or maps fields
- Check If data is not empty (If): checks a condition and branches into true / false
- Update Postman Mock (HTTP Request): calls an HTTP API
- Get Fields (Edit Fields (Set)): sets 3 fields: repo, pr, diff
- Stop and Error: stops the run with an error
- Download OLD OpenAPI Spec (HTTP Request): calls an HTTP API
- Comment to PR (HTTP Request): calls an HTTP API
- Download NEW OpenAPI Spec (HTTP Request): calls an HTTP API
- Send Summary Email (Gmail): uses Gmail
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - Stop and Error
n8n-nodes-base.stopAndError - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
API Mock Auto-Refresh with GitHub, Postman & OpenAPI Diff Alerts This n8n workflow automates the full API specification update lifecycle whenever changes are pushed to GitHub. It refreshes a Postman mock server, downloads the old and new OpenAPI specs,…