This plugin collects Gitee data through Gitee Openapi.
In order to fully use this plugin, you will need to get token on the Gitee website.
A connection should be created before you can collection any data. Currently, this plugin supports creating connection by requesting connections API:
curl 'http://localhost:8080/plugins/gitee/connections' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee",
"endpoint": "https://gitee.com/api/v5/",
"proxy": "http://localhost:1080",
"rateLimitPerHour": 20000,
"token": "<YOUR_TOKEN>"
}
'
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": { "connectionId": 1, "repo": "lake", "owner": "merico-dev" } } ] ]
and if you want to perform certain subtasks.
[ [ { "plugin": "gitee", "subtasks": ["collectXXX", "extractXXX", "convertXXX"], "options": { "connectionId": 1, "repo": "lake", "owner": "merico-dev" } } ] ]
/pipelines.curl 'http://localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee 20211126",
"plan": [[{
"plugin": "gitee",
"options": {
"connectionId": 1,
"repo": "lake",
"owner": "merico-dev"
}
}]]
}
'
and if you want to perform certain subtasks.
curl 'http://localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee 20211126",
"plan": [[{
"plugin": "gitee",
"subtasks": ["collectXXX", "extractXXX", "convertXXX"],
"options": {
"connectionId": 1,
"repo": "lake",
"owner": "merico-dev"
}
}]]
}
'