Viewing Existing OAS Files
You can view and interact with existing OAS files in Bruno using a SwaggerUI-like interface:- Enable OpenAPI Spec feature from Preferences to start working with it.

- Select Open API Spec from dropdown in left hand side menu.

- Browse and select your OAS file (
.yamlor.json) - The specification will open in a dedicated section of your Bruno sidebar

Creating New OAS Files
- In the sidebar, click + next to API Specs.
- Select Create API Spec.
apispec folder, and the default workspace uses the default location from Preferences (or that workspace’s apispec folder when no default location is set). Optionally, use Browse to select the location, then click Create.
Blank Spec
Leave Source on Blank Spec and enter a Name. Bruno writes an empty.yaml file.
Bruno Collection
Select Bruno Collection to generate an OpenAPI 3 spec from the requests in a collection. From workspace lists the collections in the active workspace. Pick one from the dropdown. Name is filled from the collection name. When that collection has environments, an Environment field appears and the selected environment’s variables are written into the spec.
bruno.json or opencollection.yml. Name is filled from the folder name.
Spec URL
Select Spec URL and enter anhttp or https URL that returns an OpenAPI 3.x document (YAML or JSON). Bruno fetches the URL and checks that it is an OpenAPI 3.x specification. Name is filled from the spec’s info.title. The saved file is .json when the response is JSON, and .yaml otherwise.

Editing Your OAS File
Once created, you can edit your OAS file in Bruno’s built-in editor:- The editor provides syntax highlighting
- Use the sidebar to navigate through different sections of your API
- Add or modify endpoints, parameters, and responses
- Include examples and descriptions for better documentation
