Initial Set-Up
Configure REST API Info
Example code:
URL=https://event-platform.com/products/api/2cdee07fe....45d58e65537f39
KEY=b6519d3c56c....6746131380159bb9const url = "https://nchainplatform.com/products/api/2cdee07fe....45d58e65537f39";
const key = "b6519d3c56c....6746131380159bb9";Check Readiness
Example code:
curl "$URL/readiness" \
-H "x-api-key: $KEY" \
-H "accept: text/plain"const response = await fetch('${url}/readiness', {
headers: {
'x-api-key': '{$key}',
'accept': 'text/plain'
}
});Example cURL response:
{
"appVersion": "1.4.1",
....
}Check Liveness
Example code:
Example cURL response:
Last updated