Example bash / curl script for interacting with the REST endpoint.