notes/snippet/shell/api.sh

14 lines
275 B
Bash

#!/bin/bash
DEV="http://localhost"
GIN_DEMO_HOST_DEV="$DEV:8001/gin-demo"
# monitor
# 健康检查
curl --location --request POST "$GIN_DEMO_HOST_DEV/check-health" \
--header 'User-Agent: Test-UA' \
--header 'Content-type: application/json' \
--data-raw '{}'