On this page

IMPORT API BRUNO

Core command

Imports a Bruno API collection (single-file OpenCollection YAML) into the API catalog, or imports it again.

Syntax

IMPORT API BRUNO <file> <api>

Arguments

ArgumentRequiredValuesDefault
<file>YesThe OpenCollection YAML file, in double quotes when its path has spacesNone
<api>YesThe ID of the API to create, or to import into againNone

Examples

IMPORT API BRUNO "C:\bruno\demo.yml" DEMO;

Details

First import and re-import

The first import creates the API, with its environments, folders and endpoints. Running it again on the same API is safe and can be repeated:

  • an object already imported from the same source is updated;
  • a new object of the source is added;
  • an object of an earlier import that the source no longer has is left as it is, never deleted.

What is imported

Every HTTP method is imported and listed by SHOW ENDPOINTS; RUN sends GET, HEAD, POST, PUT, PATCH and DELETE, and refuses OPTIONS and any other method. Scripts, assertions and the request or response automation are recognized and counted, but never imported or shown.

Supported format

Only the single-file OpenCollection YAML that Bruno exports (bundled: true). A collection stored as a folder of files cannot be read yet. Put a file path that contains spaces in double quotes.

Last modified in release 5.5.0.

Found something wrong or unclear on this page? , with the page address.