You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.5 KiB
121 lines
2.5 KiB
@tall = https://www.tall.wiki/gateway/tall3/v3.0
|
|
@test = https://test.tall.wiki/gateway/tall3/v3.0
|
|
@localhost = http://localhost:7030
|
|
@type = content-type: application/json;charset=utf-8
|
|
|
|
### 登录
|
|
# @name login
|
|
POST {{test}}/users/signin
|
|
# POST http://localhost:7030/v1.0/users/signin
|
|
{{type}}
|
|
|
|
{
|
|
"client": 1,
|
|
"type": 3,
|
|
"data": {
|
|
"identifier": "zy11",
|
|
"credential": "123456"
|
|
}
|
|
}
|
|
|
|
### 导入插件
|
|
# POST http://127.0.0.1:7220/plugin/import
|
|
POST http://test.tall.wiki/gateway/pluginshop/plugin/import
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
title
|
|
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
|
Content-Disposition: form-data; name="param"; filename="插件导入表格.xlsx"
|
|
Content-Type: xlsx
|
|
|
|
< C:\Users\aBin\Desktop\暴风眼\插件导入表格.xlsx
|
|
|
|
------WebKitFormBoundary7MA4YWxkTrZu0gW--
|
|
|
|
|
|
### 大屏急救各个节点时间统计
|
|
POST {{test}}/screen/getPointTime
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"param": {
|
|
"carId":"3"
|
|
}
|
|
}
|
|
|
|
|
|
#根据任务id查询插件列表(该任务已添加的)
|
|
###F
|
|
# POST http://localhost:7030/v1.0/plugins/findPluginOfAdded
|
|
POST {{test}}/plugins/findPluginOfAdded
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"param": {
|
|
"taskId":"1365119892432490496",
|
|
"roleId":"1365119891782373376"
|
|
}
|
|
}
|
|
|
|
#根据任务id查询插件列表(该任务未添加的的)
|
|
###F
|
|
# POST http://localhost:7030/v1.0/plugins/findPluginOfNoAdded
|
|
POST {{test}}/plugins/findPluginOfNoAdded
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"param": {
|
|
"taskId":"1",
|
|
"roleId":"1"
|
|
}
|
|
}
|
|
|
|
|
|
#给插件总表添加插件
|
|
###F
|
|
# POST http://localhost:7030/v1.0/plugins/save
|
|
POST {{test}}/plugins/save
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"param": {
|
|
"name":"show_score",
|
|
"description":"展示分数"
|
|
|
|
}
|
|
}
|
|
|
|
#给任务添加插件
|
|
###F
|
|
# POST http://localhost:7030/v1.0/plugins/addPluginForTask
|
|
POST {{test}}/plugins/addPluginForTask
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"param": {
|
|
"pluginId":"1",
|
|
"taskId":"1365120545775030272",
|
|
"roleId":"1365119891782373376"
|
|
}
|
|
}
|
|
|
|
#给任务删除插件
|
|
###F
|
|
# POST http://localhost:7030/v1.0/plugins/deletePluginForTask
|
|
POST {{test}}/plugins/deletePluginForTask
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"param": {
|
|
"taskId":"1365120545775030272",
|
|
"roleId":"1365119891782373376",
|
|
"pluginId":"1"
|
|
}
|
|
}
|
|
|