POST /api/v1/upload/tus/{id}
POST
/api/v1/upload/tus/{id}TUS 合并完成上传(生成资产)
请求参数
| 名称 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
id | string | path | 是 | — |
请求示例
cURL
curl -X POST 'http://localhost:8080/api/v1/upload/tus/{id}' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <JWT>'JavaScript
const res = await fetch('http://localhost:8080/api/v1/upload/tus/{id}', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <JWT>'
},
});
const data = await res.json();Python
import requests
res = requests.post(
'http://localhost:8080/api/v1/upload/tus/{id}',
headers={'Accept': 'application/json', 'Authorization': 'Bearer <JWT>'}
)
print(res.json())响应
201成功
application/json
{
"type": "object",
"description": "通用响应包装",
"properties": {
"code": {
"type": "string",
"example": "ok"
},
"message": {
"type": "string",
"example": "ok"
},
"data": {}
}
}404会话不存在/已过期
409未传完
413文件过大
415不支持的媒体类型
在线调试
在线调试
凭证仅保存在当前页面内存中自定义请求 Header
