Files
cannaiq/backend/test-graphql-curl.sh
Kelly 66e07b2009 fix(monitor): remove non-existent worker columns from job_run_logs query
The job_run_logs table tracks scheduled job orchestration, not individual
worker jobs. Worker info (worker_id, worker_hostname) belongs on
dispensary_crawl_jobs, not job_run_logs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 18:45:05 -07:00

21 lines
886 B
Bash

#!/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 ""