Skip to content

pingview/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api

Build Status codecov License Tag

Introduction

api is a Gerrit API generator of pingview written in Python.

Prerequisites

  • Python >= 3.10.0

Run

python api.py --config-file api/config/config.yml --output-file output.json

Usage

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

Settings

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

License

Project License can be found here.

Reference

About

Review API

Resources

License

Stars

Watchers

Forks

Packages

No packages published