router/api-router.go:271。controller.GetTaskPlugin,controller/task_plugin.go:354。plugin:read。同时需要满足接口的角色和业务要求。curl --location '/api/plugin/task/?version=' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "string",
"data": {
"plugin": {
"id": 0,
"key": "string",
"api_version": 0,
"version": "string",
"source": "string",
"source_hash": "string",
"enabled": true,
"active": true,
"created_at": 0,
"remark": "string",
"property1": "string",
"property2": "string"
},
"meta": {
"requiredCapabilities": [
"string"
],
"submitResponseTypes": [
"string"
],
"sortPriority": 0,
"website": "string",
"apiVersion": 0,
"key": "string",
"name": "string",
"icon": "string",
"description": {
"property1": "string",
"property2": "string"
},
"version": "string",
"author": {
"name": "string",
"url": "string",
"property1": "string",
"property2": "string"
},
"baseUrl": "string",
"channelTypes": [
0
],
"models": [
"string"
],
"fetchMode": "string",
"allowedHosts": [
"string"
],
"upstreams": [
"string"
],
"routes": [
{
"method": "string",
"path": "string",
"type": "string",
"action": "string",
"decode": "string",
"render": "string",
"taskIdParam": "string",
"retainResult": true,
"models": [
"string"
],
"property1": "string",
"property2": "string"
}
],
"protocols": [
{
"name": "string",
"models": [
"string"
],
"supports": [
"string"
],
"property1": "string",
"property2": "string"
}
],
"usageSchema": {
"property1": {
"type": "string",
"unit": "string",
"unitLabel": {
"property1": "string",
"property2": "string"
},
"enum": [
"string"
],
"description": {
"property1": "string",
"property2": "string"
},
"enumLabels": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"property1": "string",
"property2": "string"
},
"property2": {
"type": "string",
"unit": "string",
"unitLabel": {
"property1": "string",
"property2": "string"
},
"enum": [
"string"
],
"description": {
"property1": "string",
"property2": "string"
},
"enumLabels": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"property1": "string",
"property2": "string"
}
},
"usageExamples": [
{
"label": "string",
"facts": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}
],
"usageProfiles": [
{
"models": [
"string"
],
"schema": {
"property1": {
"type": "string",
"unit": "string",
"unitLabel": {
"property1": "string",
"property2": "string"
},
"enum": [
"string"
],
"description": {
"property1": "string",
"property2": "string"
},
"enumLabels": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"property1": "string",
"property2": "string"
},
"property2": {
"type": "string",
"unit": "string",
"unitLabel": {
"property1": "string",
"property2": "string"
},
"enum": [
"string"
],
"description": {
"property1": "string",
"property2": "string"
},
"enumLabels": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"property1": "string",
"property2": "string"
}
},
"examples": [
{
"label": "string",
"facts": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}
],
"auth": {
"type": "string",
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
},
"source": "string",
"layer": "string",
"has_icon": true,
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}