Import and Export

Import and Export

Bring in APIs from OpenAPI, Postman and cURL, and turn requests into code.

Overview

You don't need to build requests by hand when an API is already described somewhere. Relay imports OpenAPI 3.0 and 3.1 specs, Postman collections and environments, OpenCollections and cURL commands, and turns them into collections, environments and drafts. It can also copy a collection or a whole workspace from a Relay workspace folder.

Going the other way, Relay turns any request into code for curl, HTTPie, JavaScript, Python, Swift, Go and other languages. If the built-in generators don't fit, you can write your own in JavaScript.

Topics

Importing

Exporting

See Also

  • Code Generator API: The manifest, request model and helpers for writing code generators.
  • Supported formats: The import formats, body types, auth types and limits Relay supports.