Supported API Formats
Keep REST APIs, event APIs and GraphQL schemas in one Git repository. APIGit renders OpenAPI, AsyncAPI and GraphQL SDL in the repository, the editor’s Preview tab and published documents. Markdown guides share the same navigation, Git history and published versions.
Browser AsyncAPI governance, hosted GraphQL mocks and generated agent pages for both formats are available in the November 13, 2026 release. CLI 0.6.0 also includes AsyncAPI lint and GraphQL SDL validation. Server lint has separate availability, shown below.
| Capability | OpenAPI | AsyncAPI | GraphQL |
|---|---|---|---|
| File format | YAML or JSON; OpenAPI 3.0/3.1 and Swagger 2.0 | YAML or JSON with an asyncapi field; 2.x or 3.x | SDL in .graphql or .gql files |
| Create or import in the browser | Yes | Yes; new files start at 3.0 | Yes; SDL, rather than introspection JSON |
| Code, Diff and Preview | Yes | Yes | Yes |
| Visual Form editor | Yes | — | — |
| Browser governance | Yes | Yes | Schema validation; no rule sets |
Hosted server lint and account MCP lint_spec | Not enabled | Not enabled | — |
CLI lint (0.6.0+) | Yes | Yes | Syntax and schema checks |
CLI score, bundle, diff and breaking | Yes | — | — |
| Publish with Markdown, navigation and themes | Yes | Yes | Yes |
| Try It Out and model code generation | Yes | — | — |
| Hosted spec-based mock | Yes | — | HTTP queries and mutations from SDL |
Local mock with apigit mock serve | Yes | — | Yes (CLI 0.7.0+) |
Local spec-based mock with apigit mock serve | Yes | — | — |
Agent Markdown, llms.txt, document MCP search and outline | Yes | One generated page per file | One generated page per file |
| Per-operation/schema agent addresses and bundled-spec endpoints | Yes | — | — |
| Copy page and original-file download | Yes | Yes | Yes |
Some actions depend on your plan or a published version’s settings. A dash means APIGit does not provide that feature for the format.
Create an AsyncAPI document
- Open API & Documents in a repository and click + above the file tree.
- Choose AsyncAPI Spec. Create a starter or import YAML or JSON containing an
asyncapifield. - Give it a path such as
events/orders.yaml. - Edit in Code, review Diff, check Governance, and open Preview to read the reference.
- Commit the file, then publish a document version.
AsyncAPI has Code, Diff, Governance and Preview, with no Form tab. Choose API Best Practice in Governance to apply the rules for the document’s format. APIGit resolves references to other repository files for rendering.

APIGit documents event contracts and checks their descriptions. It does not run an event broker or provide an AsyncAPI mock server. See AsyncAPI governance.
Create a GraphQL schema
Choose GraphQL Schema in the same dialog, create a starter or import SDL, and use a path such as schema.graphql or api/schema.gql.
"""An order placed by a customer."""
type Order {
id: ID!
status: String!
}
type Query {
order(id: ID!): Order
}GraphQL has Code, Diff, Governance and Preview, with syntax highlighting and rendered query, type and response examples. Its Governance view validates the schema: a syntax error is an error, and an unknown type, an unknown directive or a duplicate name is a warning, each with its line. No rule set or organization policy applies to a schema. The source stays SDL when committed. Introspection JSON is not an import format, and GraphQL has no Form tab.

The documentation viewer describes the schema. To execute requests against generated data, publish a hosted GraphQL mock from a complete schema. It answers queries and mutations at /graphql by default, supports introspection and produces repeatable values. Mutations do not store state; subscriptions and batched requests are not supported. apigit mock serve schema.graphql (CLI 0.7.0 or later) runs the same mock locally.
Publish mixed documentation
An API Document publishes the repository at a commit, so one version can contain OpenAPI, AsyncAPI, GraphQL and Markdown together. Add each file to your navigation using its repository path.
Copy page copies an API reference in its own format. Original-file downloads preserve JSON/YAML or .graphql/.gql. OpenAPI and AsyncAPI also offer bundled downloads in the browser.
Agent-readable pages
Published AsyncAPI and GraphQL files each have one generated Markdown page, included in llms.txt, llms-full.txt, and document MCP search and outline. Use Copy page → View as Markdown to read it. Public pages can pass that address to ChatGPT or Claude; protected versions keep their access rules.
This is page-level support. Separate operation/schema addresses, bundled-spec endpoints in the agent API and the Skill’s operation list remain OpenAPI-only. The account MCP list_spec_files tool lists AsyncAPI and GraphQL files as pages. See Use a published document with AI agents.
Swagger 2.0 files and the viewer
Swagger 2.0 file support remains available. Swagger UI was removed as a separate viewer in November 2026. All three API formats use Redoc 3, and Code view remains available to inspect the source. A document that cannot render shows the error and source text.
CLI checks and server availability
The CLI, since 0.6.0, checks OpenAPI and AsyncAPI through lint and validates GraphQL SDL syntax and schemas. GraphQL syntax problems are errors; schema issues are warnings unless --fail-severity warn is selected. score, bundle, diff and breaking keep their OpenAPI scope.
Browser AsyncAPI governance is live. Server-side lint and account MCP lint_spec are not enabled on the hosted service and return an unavailable response. They require a configured lint service; the current lint-service source supports OpenAPI and AsyncAPI. GraphQL validation runs in the browser’s Governance tab and in the CLI; the server does not provide it.
See the CLI checks for examples. A GraphQL schema can be mocked both ways: published as a hosted mock, or served locally with apigit mock serve schema.graphql (CLI 0.7.0 or later).