Skip to content

Design APIs where the files live

Create or import OpenAPI, AsyncAPI and GraphQL in a Git repository. Edit OpenAPI in a visual form or as code, check it against your rules, review the diff, preview the reference, and commit.

Or clone the repository and work in your own editor, with the apigit CLI for the same checks.

app.apigit.com/acme/petstore-platform
The visual OpenAPI editor in APIGit, with an operation open in the form view

Three API formats, one Git workflow

REST APIs, event APIs and GraphQL schemas sit in the same repository, beside JSON Schema files and Markdown guides. They share branches, history, pull requests and published versions.

CapabilityOpenAPIAsyncAPIGraphQL
File formatYAML or JSON; OpenAPI 3.0 and 3.1, Swagger 2.0YAML or JSON; AsyncAPI 2.x and 3.xSDL in .graphql or .gql files
Create or import in the browserYesYes; new files start at 3.0Yes; SDL, not introspection JSON
Visual form editorYesNot providedNot provided
Code, Diff and PreviewYesYesYes
Governance while editingRule setsRule setsSchema validation, no rule sets
apigit lint in the CLIYesYesSyntax and schema checks
Publish with Markdown, navigation and themesYesYesYes
Mock server from the fileYesNot providedQueries and mutations from SDL

Five views of the same file

In edit mode the tabs at the upper right switch between Form, Code, Governance, Diff and Preview. OpenAPI has all five. AsyncAPI and GraphQL have every view except Form.

Form: OpenAPI without writing OpenAPI

The form editor shows fields for each part of an API, so people who do not know the OpenAPI syntax can work on the same spec as those who do. A navigation panel lists Info, Tags, Servers, Security, Paths, Webhooks and components. Select one and edit it in the panel on the right.

  • Add paths, webhooks, parameters and reusable components from the panel
  • New specs start at OpenAPI 3.0.3; a Swagger 2.0 file is converted to 3.0 when you edit and save it
  • Stand-alone JSON Schema files have their own form editor and viewer
app.apigit.com/acme/petstore-platform/edit/main/openapi.yaml
APIGit visual OpenAPI editor

Code: the source, in the full panel

Edit YAML, JSON or GraphQL SDL directly, with syntax highlighting. The form and the code edit the same file, so you can move between them as the change needs.

  • OpenAPI and AsyncAPI in YAML or JSON
  • GraphQL schemas as SDL, kept as SDL when committed
  • Component files and other JSON or YAML files are edited here
app.apigit.com/acme/petstore-platform/edit/main/openapi.yaml
OpenAPI code view in the APIGit editor

Governance: findings beside the code

The Governance tab checks an OpenAPI or AsyncAPI document against the rule set you pick, as you edit. Click a finding to go to its line and fix it there. For a GraphQL schema the tab validates syntax and structure: unknown types, unknown directives and duplicate names, each with its line.

  • API Best Practice and OWASP Top 10 Security are built in
  • An organization's custom profiles appear in the same menu
  • Findings in the editor are advisory; to require a passing check before a merge, run the rules in CI and require that status with branch protection
app.apigit.com/acme/petstore-platform/edit/main/openapi.yaml
Governance warnings while editing an API spec in APIGit

Diff: what you changed, before you commit

Diff shows the file before your changes on the left and your working copy on the right, with additions and deletions marked. The right side stays editable, so you can correct a change while you review it.

  • Edits are kept as drafts until you commit them
  • The Changes tab lists every changed file; choose which go into the commit, or revert one
  • Commit to the current branch, or to a new branch for a pull request
app.apigit.com/acme/petstore-platform/edit/main/openapi.yaml
Diff view of API specification changes in APIGit

Preview: the reference your readers will get

Preview renders your current edits with the same Redoc 3 viewer that the repository and published documents use, for OpenAPI, AsyncAPI and GraphQL. What you see before the commit is what a published version will show after it.

  • Try It Out on OpenAPI operations, also against a published mock server
  • A document that cannot render shows the error and its source
app.apigit.com/acme/petstore-platform/edit/main/openapi.yaml
An OpenAPI reference in APIGit’s Redoc 3 viewer, with Copy page and Try it

Start from what you already have

The add-file dialog has a card for each kind of file: OpenAPI Spec, AsyncAPI Spec, GraphQL Schema, JSON Schema Spec, Markdown Document and Navigation. Create a starter, or import.

Import a spec, a HAR file or a Postman collection

Upload an OpenAPI or Swagger 2.0 file in JSON or YAML and give it a path; missing folders are created for you. A HAR recording or a Postman collection is converted to an OpenAPI spec, which is a quick way to document an API that already runs.

  • HAR: pick which of the recorded servers to import
  • Postman collections in format v2.0 and v2.1
  • AsyncAPI 2.x and 3.x in YAML or JSON, and GraphQL SDL
app.apigit.com/acme/petstore-platform
Importing an API specification into APIGit

Add paths to a spec

Import the paths of another OpenAPI spec or a HAR file into the spec you are editing. They are merged in as an uncommitted change.

Push many files at once

It is a Git repository: clone it, add your spec files and push. This is the short way for a spec that is already split into files.

Migrate a repository

Bring a whole repository from another Git platform, with its history.

Organization templates

On Enterprise, an organization can give its repositories a common starting spec for new OpenAPI files.

Define a component once, use it everywhere

Create schemas, parameters, request bodies and responses under components in the form editor and reference them from the rest of the spec.

When several specs share definitions, split them into component files. The reference picker lists the components of the current spec and those of other spec files in the repository, including files you have created but not committed yet.

app.apigit.com/acme/petstore-platform/edit/main/openapi.yaml
Editing the Order schema component in the form editor

Or design in your own editor

Clone the repository and edit with the tools you use, or let a coding agent do it. The apigit CLI lints OpenAPI and AsyncAPI with the same rule sets as the editor and validates GraphQL schemas. For OpenAPI it also lists breaking changes between two commits and bundles split files into one.

apigit preview shows the rendered site on your machine before you push. More about the CLI.

~/petstore-platform
$ apigit lint openapi.yaml$ apigit lint events.yaml$ apigit lint schema.graphql$ apigit diff main HEAD openapi.yaml$ apigit breaking main HEAD openapi.yaml$ apigit bundle openapi.yaml -o dist/openapi.yaml$ apigit preview

Design your next API in a repository

Create a free workspace, start an OpenAPI file in the form editor or import the one you have, and commit your first change.

Free for individuals. No credit card.

$ npm install -g @apigit/cli$ apigit auth login$ apigit doc publish