Import an API specification as a design document in Insomnia

Uses: Insomnia
Related Documentation
Tags
TL;DR

In your Insomnia workspace, click Import, choose between importing from a file, a URL, or your clipboard, and click Scan.

Prerequisites

Download and install Insomnia.

You need to have an API specification in one of the following formats:

  • Insomnia
  • Postman v2
  • HAR
  • OpenAPI (versions 3.0, 3.1)
  • Swagger
  • WSDL
  • cURL

Select a specification

In your workspace, click Import and select the source of the import: File, URL, or Clipboard. Based on the source, either choose a file, enter a URL, or copy your API specification.

Scan the specification

Click Scan. You can review the resources to import, then click Import

Open the document

Open the document created to check your specification. You can see three different views:

  • On the left you can see an overview of the specification, with sections that you can expand. You can click the different elements to highlight them in the specification.
  • In the middle, you can see the specification as it was imported. You can also see if there are any warnings or errors.
  • On the right, you can see a preview of the rendering of the specification.

Design document

FAQs

Yes. For Insomnia to autodetect that your spec is in GraphQL format, the path must be /graphql, the method must be POST, the request body must be application/json and must contain a property query with the type string, and the response body must be application/json.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!