Files
tilbudgivern/apitest/examples/curl_appendixes.sh

15 lines
439 B
Bash
Executable File

#!/bin/bash
# Query: appendixes - List appendixes
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 GetAppendixes { appendixes(pagination: { limit: 10 }) { items { id number createdAt } } }"
}
EOF