نقطه پایانی GraphQL (POST /v1/graphql)
از اسنپشات درونحافظهای Rust با تأخیر زیر یک میلیثانیه سرو میشود. برای مشاهده طرح کامل SDL به GET http://fairgazette-api/v1/graphql مراجعه کنید.
curl -sS -X POST http://fairgazette-api/v1/graphql \
-H 'Content-Type: application/json' \
-d '{"query":"{ stories(query: \"within:25mi(Oakland) -paywall:paywalled\", limit: 5) { headline fairgazetteUrl primaryLocationText distanceMiles articleCount articles { sourceName canonicalUrl paywallTier framing { tone emotionalConjugations { phrase neutralEquivalent } } } } }"}'