69 lines
1.5 KiB
JSON
69 lines
1.5 KiB
JSON
{
|
|
"name": "数据导入接口",
|
|
"version": "1.0.0",
|
|
"description": "数据分析接口API",
|
|
"group": "xiang/import",
|
|
"guard": "bearer-jwt",
|
|
"paths": [
|
|
{
|
|
"path": "/:name",
|
|
"method": "POST",
|
|
"process": "xiang.import.Run",
|
|
"in": ["$param.name", ":payload"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/:name/data",
|
|
"method": "POST",
|
|
"process": "xiang.import.Data",
|
|
"in": ["$param.name", ":payload"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/:name/data/setting",
|
|
"method": "GET",
|
|
"process": "xiang.import.DataSetting",
|
|
"in": ["$param.name", ":query"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/:name/mapping",
|
|
"method": "GET",
|
|
"process": "xiang.import.Mapping",
|
|
"in": ["$param.name", ":query"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/:name/mapping/setting",
|
|
"method": "GET",
|
|
"process": "xiang.import.MappingSetting",
|
|
"in": ["$param.name", ":query"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/:name/rule/select",
|
|
"method": "GET",
|
|
"process": "xiang.import.Rules",
|
|
"in": ["$param.name", ":query"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
}
|
|
]
|
|
}
|