This repository automatically converts a Dataverse OpenAPI specification into an OpenCollection (Bruno) collection using GitHub Actions and the vacuum CLI. It also publishes a Swagger UI site for interactive API documentation and testing.
This repository is designed for direct import into Bruno as an API collection.
Environments
Two pre-configured environments are included:
| Environment | Base URL |
|---|---|
prod |
https://borealisdata.ca/api/ |
demo |
https://demo.borealisdata.ca/api/ |
You can switch between environments without changing your requests. To use a different Dataverse instance, update the baseUrl in demo.yml or prod.yml under dataverse_endpoints/environments/.
Authentication
Every request is pre-configured to include the X-Dataverse-Key header, sourced from the X_Dataverse_Key secret variable in each environment.
- Endpoints that do not require authentication will work with the header left empty.
- Endpoints that require authentication will need the variable populated with a valid API token.
A live Swagger UI is available for browsing and testing all defined Dataverse API endpoints interactively — no local setup required.
Your Dataverse instance must have the OpenAPI specification enabled. You can check if it's enabled by navigating to https://your-dataverse-instance/openapi. You can also check the OPENAPI_AVAILABILITY.md for availability across different Dataverse instances.
To use this repository with Bruno, you will also need to install Git.
- Fork this repository.
- Enable GitHub Actions in your forked repository.
- Change the URL in the
dv.txtfile to point to your Dataverse instance. For example, if your Dataverse instance is hosted athttps://demo.dataverse.org(without the trailing slash), you would change the line indv.txtto:https://demo.dataverse.org. - Update the
baseUrlvalues in demo.yml/prod.yml under dataverse_endpoints/environments/ with your demo/prod Dataverse instances. - Change the values under
serversin custom_config.yaml file to your dataverse instance as well. - Commit and push the changes to your forked repository.
- The GitHub Action will automatically run and convert the Dataverse OpenAPI specification to an OpenCollection specification, and commit the changes to the main branch of your forked repository.
- A Swagger UI page will also be deployed with the URL https://{YOUR_GITHUB_USER_NAME}.github.io/dataverse_opencollection/
See the video below for instructions on importing this repository into Bruno and using it to work with the API endpoints.
bruno_demo.mp4
Relevant discussion about OpenAPI specification in Harvard Dataverse Project: