Skip to content

Importing an API

Restorm recognises twenty-four formats and rebuilds a complete project tree from them: folders, requests, environments, API documentation, enumerations.

It is nearly always the best starting point: do not write your requests by hand if a specification exists.

File ▸ Import (Ctrl+I) accepts:

  • a file from disk;
  • a URL — handy for a swagger.json or a $metadata document served online;
  • pasted content — this is how you turn a curl command into a request.

Restorm detects the format on its own: first from the file’s extension, then by analysing the content. There is nothing for you to choose.

The "Import requests" modal: the single field where you paste a path, a URL or a curl command, the authentication route, fixed headers and gRPC reflection buttons, the drop zone, and the card for the highlighted format

FormatPage
OpenAPI 3.x and Swagger 2.0OpenAPI / Swagger
GraphQL schema (SDL)GraphQL
.proto files and gRPC reflectiongRPC
WSDLSOAP / WSDL
AsyncAPIAsyncAPI
OData EDMX / CSDLOData
OpenRPCOpenRPC
tRPC schematRPC
SmithySmithy
TypeSpecTypeSpec
RAMLRAML
WADLWADL
ThriftThrift
API BlueprintAPI Blueprint
FormatPage
PostmanPostman
InsomniaInsomnia
BrunoBruno
Thunder ClientThunder Client
Paw / RapidAPIPaw
HTTPieHTTPie
VS Code REST Client (.http)REST Client
FormatPage
HAR (browser capture)HAR
curl commandscURL
Invoke-RestMethod / Invoke-WebRequestPowerShell

Depending on how rich the source format is:

  • an environment folder with one or more environments, the base URL extracted from the specification;
  • a folder tree — by tag, by service, by resource depending on the format;
  • one request per operation, of the type matching the protocol;
  • the API documentation attached to the folder: models, descriptions, security schemes, sample responses;
  • the specification’s enumerations, reusable as a value type;
  • the pre-wired authentication headers with their variables — see Authentication.

After the import, every key / value pair whose value resolves to empty is disabled automatically: your first send therefore does not go out with a swarm of empty headers.

An import does not only produce requests: it keeps the API’s documentation — descriptions, models, security, examples, enumerations — browsable in the created folder’s Docs tab. See Accessing and updating an imported API’s documentation.

Twelve formats can be re-synced: Restorm compares the source’s new version to the existing tree and applies the delta, without losing your edits. See Updating from the source.

Restorm generates code snippets for every request, in every language relevant to its protocol. See Code export.