Compare Two REST API endpoints

In some cases, we'd like to find out if two API's are identical. Given two API endpoints and a list of url paths, this tool generates a shell script to compare if two hosts reach different result json.

Take the generated shell script below and paste into your terminal to run the comparison. If two API's are identical, nothing is shown.
(The generated shell script will use curl and jq)

When your result is too long, it may be clipped by the terminal.
To avoid ternimal copy buffer restriction, save the shell script into a file, and run.
Ex: /tmp/1.sh Then execute the file with

bash /tmp/1.sh > /tmp/output.txt

API 1:
API 2:

URLs: