Files
tilbudgivern/apitest/examples/curl_basedata.sh
T

15 lines
391 B
Bash
Executable File

#!/bin/bash
# Query: basedata - Get system base data configuration
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/../apikey"
curl -s -X POST "https://graphql.ordrestyring.dk/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${API_KEY}" \
--data-binary @- <<'EOF' | jq '.'
{
"query": "query GetBasedata { basedata }"
}
EOF