Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- #!/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 ""
|