75 lines
1.6 KiB
JSON
75 lines
1.6 KiB
JSON
{
|
|
"name": "数据导入接口",
|
|
"version": "1.0.0",
|
|
"description": "数据分析接口API",
|
|
"group": "xiang/import",
|
|
"guard": "-",
|
|
"paths": [
|
|
{
|
|
"path": "/:name",
|
|
"method": "POST",
|
|
"process": "xiang.import.Run",
|
|
"in": ["$param.name", "$payload.file", "$payload.mapping"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/:name/data",
|
|
"method": "POST",
|
|
"process": "xiang.import.Data",
|
|
"in": [
|
|
"$param.name",
|
|
"$payload.file",
|
|
"$payload.page",
|
|
"$payload.size",
|
|
"$payload.mapping"
|
|
],
|
|
"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.file"],
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|