#!/bin/bash # Query: appendix - Get single appendix by ID if [ -z "$1" ]; then echo "Usage: $0 " echo "Example: $0 1" exit 1 fi APPENDIX_ID="$1" 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 @- <