GraphQL API endpoint is incorrect for Github Enterprise
See original GitHub issueMy company’s deployment of GHE does not have an “api.hostname/graphql” API endpoint - rather, it does not have the “api.domain” subdomain.
According to the documentation here the correct endpoint for the GraphQL API endpoint in Github Enterprise is https://hostname/api/graphql
I’ve patched dinghy locally to test using this endpoint and it works perfectly against GHE.
Note 1: if you select “Free, Pro & Team” from the dropdown selector at the top of the documentation page above, you’ll see that indeed for githu.com the endpoint is https://api.github.com/graphql
as referenced in Dinghy, but for any hosted GHE instance, the documented endpoint is http(s)://[hostname]/api/graphql
Note 2: some GHE instances might ship with the “api.hostname” subdomain registered. My company’s own GHE server does not though, as it’s deployment follow the docs more strictly.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
OK, I’ve released this as part of dinghy 0.13.0.
Just tested api_root using the latest digest.py from master and it worked just fine, LGTM 😃