#!/bin/bash # Health check for the presence server. # Returns HTTP 200 with a JSON status payload when the server is up. # # Usage: # ./api/health.sh # BASE_URL=http://192.168.1.10:1902 ./api/health.sh set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" . "${SCRIPT_DIR}/../_common.sh" echo "Health check: GET ${BASE_URL}/reslevis/health" curl -s -X GET "${BASE_URL}/reslevis/health" echo ""