GET /api/v1/events/assets
GET
/api/v1/events/assets资产事件 SSE 流(上传/处理进度推送)
请求示例
cURL
curl -X GET 'http://localhost:8080/api/v1/events/assets' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <JWT>'JavaScript
const res = await fetch('http://localhost:8080/api/v1/events/assets', {
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <JWT>'
},
});
const data = await res.json();Python
import requests
res = requests.get(
'http://localhost:8080/api/v1/events/assets',
headers={'Accept': 'application/json', 'Authorization': 'Bearer <JWT>'}
)
print(res.json())响应
200text/event-stream 推送
在线调试
在线调试
凭证仅保存在当前页面内存中自定义请求 Header
