Skip to main content

Bruno

Bruno is an open-source tool for testing API requests, comparable to Postman or Insomnia. Its collections are plain files, so they are versioned in Git with the code.

FeatureDetail
RequestsGET, POST, PUT, DELETE and the other HTTP methods
CollectionsRequests grouped by project and run individually or as a batch
EnvironmentsSets of variables, such as the server address, switched without editing the requests
Variables and testsVariables injected into requests, such as an access token, and assertions on responses

The Bruno requests of the platform are stored in the /openapi directory.

Layout​

Requests are organized by module. Each module has an environments directory holding its variables, and a data directory when requests need files, such as CSV imports.

├── Open ENT v3 Administration
│ └── environments
├── Open ENT v3 Directory
│ ├── data
│ │ └── structure
│ └── environments
├── Open ENT v3 Keycloak
│ └── environments
└── Open ENT v3 Portal
└── environments

Authenticated requests​

Most requests need a JSON Web Token. To avoid copying it by hand, requests read it from a variable:

  1. Run the Get access token request. It stores the token in the variable.
  2. Run your request. It sends the stored token.

Variables that are set appear in green in Bruno; those that do not exist appear in red.