Response ModifyDeep Merge• 5 min read
How to Merge and Append New Fields into Real API Responses
Summary: Fetch the authentic response from your production server, then automatically overlay extra JSON fields onto the payload before handing it to your app.
Why This Rule Matters for Developers & QA
Often you want 99% of live production data (real movies, real catalogues, real catalog IDs) but need to toggle a single boolean flag like `is_unlocked: true`. Response Append lets you avoid maintaining giant stale mock files.
Step-by-Step Implementation Guide
1
Select Real Data Endpoint
Choose an endpoint that returns live server data (e.g. `*/api/catalog/items`).
2
Define Differential Patch
Enter only the specific properties you want to inject or override.
3
Observe Merged Response
Your application receives authentic live server data with your test properties cleanly merged.
Configuration Snippet
How to Merge and Append New Fields into Real API Responses — proxyceptor-rule.json
JSON
{ "id": "rule_unlock_catalog_items", "pattern": "*/api/catalog/items*", "action": "merge-response", "responseMerge": { "entitlements": { "has_vip_access": true, "preview_mode": false } }, "enabled": true}