Using this script, you can read the status of each service from a JSON REST API.
Copy the below content to mocky.io for testing. Modify according to your needs.
{ "status": "Healthy", "results": { "Env": { "status": "Healthy", "description": "Environment::Development", "data": {} }, "Database": { "status": "Healthy", "description": null, "data": {} }, "Fiserv": { "status": "Healthy", "description": null, "data": {} }, "Zoot": { "status": "Healthy", "description": null, "data": {} } } }