生成分享id
本地
http://127.0.0.1:9999
本地
http://127.0.0.1:9999
POST
http://127.0.0.1:9999
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
id
string
必需
share_type
string
必需
示例
{
"id": "string",
"share_type": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:9999/api/v1/vis/plugin/share' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"share_type": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
dashboard_id
string
必需
share_id
string
必需
device_list
string
必需
created_at
string
必需
share_type
string
必需
示例
{
"code": 200,
"message": "Get list successfully",
"data": {
"list": [
{
"create_at": 1716218874,
"files": [
{
"file_name": "微信图片_20231217221753.jpg",
"file_size": "315616",
"file_url": "./files/visplugin/2024-05-20/a9fc845d84fef77e87cb0969775b7fea.jpg"
},
{
"file_name": "123.jpg",
"file_size": "20100",
"file_url": "./files/visplugin/2024-05-20/b3838ba141e8e666d852ee9845411c21.jpg"
},
{
"file_name": "234.jpg",
"file_size": "26888",
"file_url": "./files/visplugin/2024-05-20/b703b43180dd5da8d4cce3a33072e476.jpg"
}
],
"id": "09e8dace-47d4-6b8f-f34c-84ff626cf3f8",
"plugin_name": "test"
}
],
"total": 1
}
}