You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're introducing a breaking change to the Pontoon public GraphQL API.
Key Change
The /graphql/ endpoint now always serves the GraphiQL interface (an interactive query editor) when accessed with the Accept: text/html header (e.g. from browsers). Previously, this behavior was limited to local development setups.
How This Affects You
If your integration explicitly or inexplicitly sends the Accept: text/html header, your application might break or behave unexpectedly, as it will now receive the HTML-based GraphiQL interface instead of the JSON response.
To ensure JSON responses: Use the Accept: application/json header or include the raw query argument in your request URL. Requests will also return JSON when no headers are sent.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We're introducing a breaking change to the Pontoon public GraphQL API.
Key Change
The
/graphql/
endpoint now always serves the GraphiQL interface (an interactive query editor) when accessed with theAccept: text/html
header (e.g. from browsers). Previously, this behavior was limited to local development setups.How This Affects You
If your integration explicitly or inexplicitly sends the
Accept: text/html
header, your application might break or behave unexpectedly, as it will now receive the HTML-based GraphiQL interface instead of the JSON response.To ensure JSON responses: Use the
Accept: application/json
header or include theraw
query argument in your request URL. Requests will also return JSON when no headers are sent.Example Request
Force JSON response (GET):
Beta Was this translation helpful? Give feedback.
All reactions