How to Compare API Responses
Problem: Detect regressions or changes between two API responses from different environments or versions.
Steps
- Run the API in environment A and copy the response.
- Run the API in environment B and copy that response.
- Open Text Compare and paste responses side-by-side.
- Optionally prettify JSON responses first with JSON Formatter.
Example
// Response A
{"status":"ok","count":10}
// Response B
{"status":"ok","count":11}
The diff will show the change in the count field.