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