netvs-hub
The NETVS Hub is a collection of custom defined transaction groups. The goal of transaction groups is to simplify processes, which consist of several interdependent transactions, as one transaction.
Usage
All valid json templates contributed to this project get automatically included into NETVS.
Developers are able to enable the developer mode of NETVS and to load local JSON templates through an entry in the transaction list. Be careful: Only load JSON templates from trusted sources! Be aware that only valid JSON templates will work and that they need to match the currently supported API specification to work.
Contribution guide
You are welcome to contribute your own transaction groups!
Requirements:
- Python 3.6 or newer
- Internet connection
Here's a quick guide on the contribution of new JSON templates
- Clone this repository to your local machine.
- Create a new branch for your transaction group.
- Start defining your JSON template in the
json_templates
folder in your text editor of your choice (vim, Notepad++, ...) sticking to the latest released schema to ensure compatibility with the latest released NETDB-API and NETVS. You can find all schema definitions in theschemas
folder. For inspiration of JSON templates you can take a look into other JSON templates, but be careful with theirtarget_api
andschema_version
as they might differ. - Check if your written JSON file is valid. This can be best done with the
netvs_hub_cli
python tool. You can install it with the following command (it's recommended to do this in avenv
):pip3 install git+https://git.scc.kit.edu/scc-net/netvs/netvs_hub_cli.git@main#egg=netvs_hub_cli
<json_template>.json
with the file name of your created template.python -m netvs_hub_cli --schemas schemas/ <json_template>.json
- Commit your added JSON template to the repository and push them.
- Create a merge request to merge your added or modified JSON template onto the
m̀ain
branch. After submission the following requirements will be checked:- Successful CI run
- Two successful reviews from the NETVS team
- Your template will be merged into the main repo and will be deployed soon.
License
The NETVS-Hub is licensed under the MIT-License. More information can be found here.