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.
| Feature | Detail |
|---|---|
| Requests | GET, POST, PUT, DELETE and the other HTTP methods |
| Collections | Requests grouped by project and run individually or as a batch |
| Environments | Sets of variables, such as the server address, switched without editing the requests |
| Variables and tests | Variables 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:
- Run the Get access token request. It stores the token in the variable.
- 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.