Files
weval-l99/test-wevads-endpoints.sh
2026-04-13 12:43:21 +02:00

12 lines
644 B
Bash
Executable File

#!/bin/bash
echo "=WEVADS-IA ENDPOINTS TEST="
TOTAL=0; OK=0
for EP in wevads-proxy send-controller whatsapp-api spam-score adx-bridge send-engine-unified postback-api sequence-engine ecosystem-health nonreg-api autolearn monitoring-dashboard live-metrics; do
CODE=$(curl -sk -o /dev/null -w "%{http_code}" --max-time 5 "https://127.0.0.1/api/$EP" -H "Host: weval-consulting.com" 2>/dev/null)
TOTAL=$((TOTAL+1))
if [ "$CODE" = "200" ]; then OK=$((OK+1)); STATUS="OK"; else STATUS="FAIL"; fi
echo "$EP: $CODE $STATUS"
done
echo "=RESULT= $OK/$TOTAL endpoints OK"
echo "=PORT5850= $(ss -tlnp 2>/dev/null | grep 5850 || echo DOWN)"