api is a Gerrit API generator of pingview written in Python.
- Python >= 3.10.0
python api.py --config-file api/config/config.yml --output-file output.json
usage: api.py [-h] --config-file CONFIG_FILE --output-file OUTPUT_FILE [-v]
PingView API
options:
-h, --help show this help message and exit
--config-file CONFIG_FILE
config file (.yml)
--output-file OUTPUT_FILE
output file (.json|.yml)
-v, --version show program's version number and exit
api parameters can be set in the directory config.
An example of configuration in config.yml:
apiVersion: v1
kind: api
metadata:
name: api
spec:
host: https://gerrit-googlesource.g.globit.com/gerrit/+/refs/tags/v3.6.0/Documentation
index:
- name: access
page: rest-api-access.txt
- name: accounts
page: rest-api-accounts.txt
- name: changes
page: rest-api-changes.txt
- name: config
page: rest-api-config.txt
- name: Documentation
page: rest-api-documentation.txt
- name: groups
page: rest-api-groups.txt
- name: plugins
page: rest-api-plugins.txt
- name: projects
page: rest-api-projects.txt
Project License can be found here.