mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-06 06:07:40 +08:00
277 lines
6.4 KiB
JSON
277 lines
6.4 KiB
JSON
{
|
|
"definitions": {},
|
|
"paths": {
|
|
},
|
|
"tags": [
|
|
{
|
|
"description": "低代码",
|
|
"name": "AMIS"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/dashboard": {
|
|
"post": {
|
|
"description": "启动任务推送大屏数据",
|
|
"parameters": [
|
|
{
|
|
"name": "dashboardId",
|
|
"description": "大屏ID",
|
|
"in": "query",
|
|
"required": true,
|
|
"type": "string",
|
|
"default": "32511dbfe5"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "data",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns instance data"
|
|
},
|
|
"404": {
|
|
"description": "object not found",
|
|
"schema": {
|
|
"$ref": "#/definitions/Error"
|
|
}
|
|
}
|
|
},
|
|
"summary": "大屏数据",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
}
|
|
},
|
|
"/amis": {
|
|
"get": {
|
|
"description": "amis测试",
|
|
"parameters": [
|
|
{
|
|
"name": "deviceid",
|
|
"in": "query",
|
|
"type": "string",
|
|
"default": "b1002a0317",
|
|
"description": "设备Id"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns operation status"
|
|
},
|
|
"400": {
|
|
"description": "Bad Request"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"500": {
|
|
"description": "Server Internal error"
|
|
}
|
|
},
|
|
"summary": "amis测试",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
}
|
|
},
|
|
"/amis_device": {
|
|
"get": {
|
|
"description": "查询amis设备",
|
|
"parameters": [
|
|
{
|
|
"name": "deviceid",
|
|
"in": "query",
|
|
"type": "string",
|
|
"default": "b1002a0317",
|
|
"description": "设备Id"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns operation status"
|
|
},
|
|
"400": {
|
|
"description": "Bad Request"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"500": {
|
|
"description": "Server Internal error"
|
|
}
|
|
},
|
|
"summary": "查询amis设备",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
},
|
|
"put": {
|
|
"description": "修改amis设备",
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "user",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"deviceid": {
|
|
"type": "string",
|
|
"description": "设备Id",
|
|
"required": true
|
|
},
|
|
"name": {
|
|
"required": true,
|
|
"type": "string",
|
|
"description": "设备名称"
|
|
},
|
|
"devaddr": {
|
|
"required": true,
|
|
"type": "string",
|
|
"description": "设备地址"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns operation status"
|
|
},
|
|
"400": {
|
|
"description": "Bad Request"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"500": {
|
|
"description": "Server Internal error"
|
|
}
|
|
},
|
|
"summary": "修改amis设备",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
},
|
|
"delete": {
|
|
"description": "删除amis设备",
|
|
"parameters": [
|
|
{
|
|
"name": "deviceid",
|
|
"in": "query",
|
|
"type": "string",
|
|
"default": "b1002a0317",
|
|
"description": "设备Id"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns operation status"
|
|
},
|
|
"400": {
|
|
"description": "Bad Request"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"500": {
|
|
"description": "Server Internal error"
|
|
}
|
|
},
|
|
"summary": "删除amis设备",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
},
|
|
"post": {
|
|
"description": "创建amis设备",
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "user",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"deviceid": {
|
|
"type": "string",
|
|
"description": "设备Id",
|
|
"required": true
|
|
},
|
|
"ChannelId": {
|
|
"required": true,
|
|
"type": "string",
|
|
"description": "设备通道Id"
|
|
},
|
|
"DTUIP": {
|
|
"required": true,
|
|
"type": "string",
|
|
"description": "设备DTUIP"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns operation status"
|
|
},
|
|
"400": {
|
|
"description": "Bad Request"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"500": {
|
|
"description": "Server Internal error"
|
|
}
|
|
},
|
|
"summary": "创建amis设备",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
}
|
|
},
|
|
"/update_product": {
|
|
"post": {
|
|
"security": [],
|
|
"description": "更新设备数据",
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "data",
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Returns operation status"
|
|
},
|
|
"400": {
|
|
"description": "Bad Request"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"500": {
|
|
"description": "Server Internal error"
|
|
}
|
|
},
|
|
"summary": "更新设备数据",
|
|
"tags": [
|
|
"AMIS"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|