On this page
IMPORT API BRUNO
Imports a Bruno API collection (single-file OpenCollection YAML) into the API catalog, or imports it again.
Syntax
IMPORT API BRUNO <file> <api>
Arguments
| Argument | Required | Values | Default |
|---|---|---|---|
<file> | Yes | The OpenCollection YAML file, in double quotes when its path has spaces | None |
<api> | Yes | The ID of the API to create, or to import into again | None |
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.
Related
Last modified in release 5.5.0.
Found something wrong or unclear on this page? Tell us, with the page address.