The connection aspect of the configuration screen requires the following key fields to connect to the Gitee API. As gitee is a single-source data provider at the moment, the connection name is read-only as there is only one instance to manage. As we continue our development roadmap we may enable multi-source connections for gitee in the future.
READONLY]https:// or http://)https://gitee.com/api/v5//"For API requests using Basic Authentication or OAuth
If you have a need for more api rate limits, you can set many tokens in the config file and we will use all of your tokens.
For an overview of the gitee REST API, please see official gitee Docs on REST
Click Save Connection to update connection settings.
Manage additional settings and options for the gitee Datasource Provider. Currently there is only one optional setting, Proxy URL. If you are behind a corporate firewall or VPN you may need to utilize a proxy server.
gitee Proxy URL [ Optional] Enter a valid proxy server address on your Network, e.g. http://your-proxy-server.com:1080
Click Save Settings to update additional settings.
Define regex pattern in .env
In order to collect data, you have to compose a JSON looks like following one, and send it by selecting Advanced Mode on Create Pipeline Run page:
[ [ { "plugin": "gitee", "options": { "repo": "lake", "owner": "merico-dev" } } ] ]
and if you want to perform certain subtasks.
[ [ { "plugin": "gitee", "subtasks": ["collectXXX", "extractXXX", "convertXXX"], "options": { "repo": "lake", "owner": "merico-dev" } } ] ]
/pipelines.curl --location --request POST 'localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee 20211126",
"tasks": [[{
"plugin": "gitee",
"options": {
"repo": "lake",
"owner": "merico-dev"
}
}]]
}
'
and if you want to perform certain subtasks.
curl --location --request POST 'localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee 20211126",
"tasks": [[{
"plugin": "gitee",
"subtasks": ["collectXXX", "extractXXX", "convertXXX"],
"options": {
"repo": "lake",
"owner": "merico-dev"
}
}]]
}
'