A comprehensive API testing collection for the Dialogporten platform, part of the Altinn ecosystem.
To get up and running, you need to:
Bruno is an open-source API client for exploring and testing APIs. You can install it using one of the following methods:
- Direct Download: Download from the official downloads page
- Homebrew:
brew install bruno
- Direct Download: Download the Windows installer from the official downloads page
- Package Managers:
- Chocolatey:
choco install bruno - Winget:
winget install Bruno.Bruno - Scoop:
scoop install bruno
- Chocolatey:
- Direct Download: Download the Linux package from the official downloads page
- Package Managers:
- Debian/Ubuntu: Follow the official installation guide
- Flatpak:
flatpak install flathub com.usebruno.Bruno - Snap:
sudo snap install bruno
⚠️ Important: Safe Mode RequiredThis collection must be run in Safe Mode, not Developer Mode. The pre-request scripts use Bruno's bundled modules (like axios) which are only available in Safe Mode.
To check/change your mode: Click the JavaScript Sandbox button in the toolbar (shows as a shield icon in Safe Mode or
</>in Developer Mode), located between the settings gear and the Environment dropdown. Select Safe Mode.
Once Bruno is installed:
- Open Bruno on your system
- Click "Open Collection" from the home screen
- Navigate to this folder (
dialogporten-bruno) and select it - The collection will load with all the organized requests and environments
-
Create your own
.envfile based on the includedexample.envfile.cp example.env .env
-
Edit the
.envfile with your actual credentials and configuration values:# Open .env in your preferred text editor # Replace placeholder values with your real credentials # Example: API_KEY=your_actual_api_key_here
-
Select an environment from the dropdown in Bruno (e.g., "Local development", "Staging", "Production")
-
Update environment variables as needed for your specific setup
This collection is organized into two main sections:
- EndUser: API endpoints for end users interacting with dialogs
- ServiceOwner: API endpoints for service owners managing dialogs and activities
Each section contains organized folders for different resource types (Dialogs, DialogActivities, etc.) with corresponding API requests.