Streamline management of API collections #1

Merged
administrator merged 43 commits from feature/script-autogenerate-http into main 2026-08-19 14:54:42 +02:00
Owner

Description

Add scripts to facilitate fruition of Bruno API collections

Reason

Bruno API has been chosen as a substitute of Postman because of limitations in multi-user collaboration in its "free" version.
While Bruno is very similar to Postman in many aspects, it still needs to be installed by every user who needs to call internal APIs: to make it easier to call HTTP requests, many scripts and tools have been added to convert Bruno requests to VSCode/httpyac requests, allowing users to be able to use them without installing Bruno itself.

Since many collections make use of secrets, a main environment file has been created to propagate such secrets to all collections; some configuration scripts have also been added to streamline such process.

Remarks

Even if Bruno is not scrictly needed to run requests, one has still to install VSCode and httpyac extension

Details

  • move Bruno collections to own folder (this allows for automatic generation of different formats under autodocs folder)
  • add automatic generation of httpyac requests (Bruno scripts are not automatically refactored!)
  • add scripts to automatically generate environments and values for Bruno collections
  • add scripts to automatically generate environments and values for httpyac requests

Co-authors

N/A

Check-lists

Common

  • At least 1 unit-test added.

Note: no tests have been added, as the utility scripts are Powershell-based.

Database

N/A

## Description Add scripts to facilitate fruition of Bruno API collections ### Reason Bruno API has been chosen as a substitute of Postman because of limitations in multi-user collaboration in its "free" version. While Bruno is very similar to Postman in many aspects, it still needs to be installed by every user who needs to call internal APIs: to make it easier to call HTTP requests, many scripts and tools have been added to convert Bruno requests to VSCode/httpyac requests, allowing users to be able to use them without installing Bruno itself. Since many collections make use of secrets, a main environment file has been created to propagate such secrets to all collections; some configuration scripts have also been added to streamline such process. ### Remarks Even if Bruno is not scrictly needed to run requests, one has still to install VSCode and httpyac extension ### Details - move Bruno collections to own folder (this allows for automatic generation of different formats under autodocs folder) - add automatic generation of httpyac requests (Bruno scripts are not automatically refactored!) - add scripts to automatically generate environments and values for Bruno collections - add scripts to automatically generate environments and values for httpyac requests ## Co-authors N/A ## Check-lists ### Common - [ ] At least 1 unit-test added. Note: no tests have been added, as the utility scripts are Powershell-based. ### Database N/A
administrator added 42 commits 2026-08-19 14:23:39 +02:00
add gitignore for automatically generated stuff
- add YAML module and remove python child process
- add collection headers to each request
- fix authorization header emission
- create .env.template file with environment variables
- add missing headers and body with relative content-type
- fix double quotes for empty variables (not needed by VSCode REST client)
- strip comments from JSON data
add unit tests
change autogenerated requests path to autogen/httpyac
- update EFTL for table of amounts with year
- add missing headers generation
- sort variables (for testing, may be disabled)
- skip environments when no file is actually present
- take account of pwsh quirks...
- add missing headers generation
- add missing rendering of variables
- make 99.9% equal to nodejs script
- change autogenerated folder to autodocs/httpyac
- renamed many environment variables
- add config section to env template to manage different apps
- cleanup bruno environments for easier automation of env files
- add pre-request and post-response scripts from bruno
- manage EFTL-specific scripts
- add scripts to setup json template
- add scripts to update environment files
move old requests to own folder
pierpaolo.mammi added 1 commit 2026-08-19 14:52:08 +02:00
administrator closed this pull request 2026-08-19 14:53:15 +02:00
administrator reopened this pull request 2026-08-19 14:53:57 +02:00
administrator merged commit 20e174e525 into main 2026-08-19 14:54:42 +02:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: elixForms/api-collections#1