49 lines
1,012 B
JSON
49 lines
1,012 B
JSON
{
|
|
"name": "存储接口",
|
|
"version": "1.0.0",
|
|
"description": "存储接口API",
|
|
"group": "xiang/storage",
|
|
"guard": "bearer-jwt",
|
|
"paths": [
|
|
{
|
|
"path": "/upload",
|
|
"method": "POST",
|
|
"process": "xiang.fs.Upload",
|
|
"in": ["$file.file"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/readfile",
|
|
"method": "GET",
|
|
"process": "xiang.fs.ReadFile",
|
|
"in": ["$query.name", "$query.encode"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
},
|
|
{
|
|
"path": "/url",
|
|
"method": "GET",
|
|
"process": "xiang.fs.GetURL",
|
|
"in": ["$query.name", "$query.type"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "image/png"
|
|
}
|
|
},
|
|
{
|
|
"path": "/token",
|
|
"method": "GET",
|
|
"process": "xiang.fs.GetToken",
|
|
"in": ["$query.name"],
|
|
"out": {
|
|
"status": 200,
|
|
"type": "application/json"
|
|
}
|
|
}
|
|
]
|
|
}
|