You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 regels
411 B

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