#!/bin/bash # Test Dutchie GraphQL API ENDPOINT="https://api-gw.dutchie.com/embedded-graphql" BODY='{"operationName":"FilteredProducts","variables":{"includeEnterpriseSpecials":false,"productsFilter":{"dispensaryId":"AZ-Deeply-Rooted","pricingType":"rec","useCache":false},"page":0,"perPage":10},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"ee29c060826dc41c527e470e9ae502c9b2c169720faa0a9f5d25e1b9a530a4a0"}}}' echo "Testing Dutchie GraphQL API..." echo "Endpoint: $ENDPOINT" curl -s "$ENDPOINT" \ -X POST \ -H "accept: application/json" \ -H "origin: https://dutchie.com" \ -H "referer: https://dutchie.com/embedded-menu/AZ-Deeply-Rooted" \ -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \ -H "apollographql-client-name: Marketplace (production)" \ -H "content-type: application/json" \ -d "$BODY" | head -c 3000 echo ""