API commands for this page

Run these examples from a terminal. Replace sample values and add your bearer token where required.

Compare lines

curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"text1":"before","text2":"after"}' 'https://api.casjay.coffee/api/v1/tools/diff/lines'

Compare words

curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"text1":"before","text2":"after"}' 'https://api.casjay.coffee/api/v1/tools/diff/words'