Is your expected.json the actual response body, or is it an object containing body, status, header values, and time-taken, etc?
I really like it because it serves 3 purposes:
- API docs/examples that you can interact with
- Test cases
- Manually invoking API endpoints when working on the underlying code, in an iterative loop
Is your expected.json the actual response body, or is it an object containing body, status, header values, and time-taken, etc?