1
0
mirror of synced 2026-01-29 12:00:58 -05:00
Files
docs/content/graphql/overview/public-schema.md
2021-04-30 19:30:36 -07:00

35 lines
1.2 KiB
Markdown

---
title: Public schema
intro: 'Download the public schema for the {% data variables.product.prodname_dotcom %} GraphQL API.'
redirect_from:
- /v4/public_schema
versions:
free-pro-team: '*'
enterprise-server: '*'
github-ae: '*'
topics:
- API
---
You can [perform introspection](/graphql/guides/introduction-to-graphql#discovering-the-graphql-api) against the GraphQL API directly.
Alternatively, you can download the latest version of the public schema here:
{% if currentVersion == "free-pro-team@latest" %}
[{% octicon "desktop-download" aria-label="The desktop download icon" %} `schema.docs.graphql`](/public/schema.docs.graphql)
{% endif %}
{% if enterpriseServerVersions contains currentVersion %}
[{% octicon "desktop-download" aria-label="The desktop download icon" %} `schema.docs-enterprise.graphql`](/public/ghes-{{ allVersions[currentVersion].currentRelease }}/schema.docs-enterprise.graphql) ({{ allVersions[currentVersion].versionTitle }})
{% endif %}
{% if currentVersion == "github-ae@latest" %}
[{% octicon "desktop-download" aria-label="The desktop download icon" %} `schema.docs-ghae.graphql`](/public/ghae/schema.docs-ghae.graphql) ({{ allVersions[currentVersion].versionTitle }})
{% endif %}