{
  "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",
      "guard": "-",
      "process": "xiang.fs.GetURL",
      "in": ["$query.name", "$query.type", "$query.token"],
      "out": { "status": 200, "type": "image/png" }
    },
    {
      "path": "/token",
      "method": "GET",
      "process": "xiang.fs.GetToken",
      "in": ["$query.name"],
      "out": {
        "status": 200,
        "type": "application/json"
      }
    }
  ]
}
