根据条件查询检测设备信息
GET
/api-web-v1/checks
请求参数
Query 参数
label
string
查询的字段名
示例值:
name
search
string
可选
示例值:
温度A
page
string
可选
示例值:
1
limit
string
可选
示例值:
2
Header 参数
Authorization
string
必需
示例值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://ws.25soft.com/api-web-v1/checks' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
number
是否成功
data
object
返回数据
total
number
可选
rows
array [object {21}]
当前返回的设备对象列表
示例
{
"code": 0,
"data": {
"total": 5,
"rows": [
{
"line": false,
"value": 28,
"valueStr": null,
"boardConfigStr": "{}",
"canRead": true,
"_id": "6453169c78de59a899f75640",
"name": "温度A",
"sort": null,
"company": "℃",
"icon": null,
"interval": null,
"rosterName": null,
"precision": null,
"control": "5feaed768c1afe001bca0f3f",
"parentName": "Hardware",
"parent": {
"line_status": 0,
"tags": [],
"_id": "6453169278de59b200f75614",
"name": "依卓尔00",
"line": false,
"isShow": true,
"type": 3,
"status": 0,
"hardwareWord": "644b8aa45a9eea25157daa1c",
"serialData": {
"_id": "644b8aa45a9eeafa957daa1d",
"comName": null,
"baud": 9600,
"verification": "even",
"stopBit": 1,
"dataBit": 8,
"state": false,
"address": null
},
"attribute": [],
"shortAddress": "00",
"control": "5feaed768c1afe001bca0f3f",
"netMqttDevice": "644a2ee271b80989b416380b",
"creator": "5da994550dc418001b95d36f",
"__v": 0,
"lineTime": "2023-05-05T04:49:05.853Z",
"id": "6453169278de59b200f75614"
},
"shortAddress": "tempA",
"creator": {
"_id": "5da994550dc418001b95d36f",
"trueName": "郑元杰",
"username": "13806650937"
},
"createdAt": "2023-05-04T02:21:16.460Z",
"updatedAt": "2023-05-05T04:49:05.891Z",
"__v": 0,
"valueAt": "2023-05-05T04:08:15.288Z"
},
{
"line": false,
"value": null,
"valueStr": null,
"boardConfigStr": "{}",
"canRead": true,
"_id": "645460275f11cf47c120b21b",
"name": "温度A",
"sort": null,
"company": "℃",
"icon": null,
"interval": null,
"rosterName": null,
"precision": null,
"control": "5feaed768c1afe001bca0f3f",
"shortAddress": "tempA",
"parentName": "Hardware",
"parent": {
"line_status": 0,
"tags": [],
"_id": "6446566f00c14b120e0bb948",
"name": "SDN-M 系列控制恒流一体机01",
"line": false,
"isShow": true,
"type": 3,
"status": 0,
"control": "5feaed768c1afe001bca0f3f",
"netMqttDevice": "6440d8c7d962ad6798f60291",
"shortAddress": "",
"hardwareWord": "644627ad2cdd1c2f8f076cc8",
"serialData": {
"_id": "644627ad2cdd1c087c076cc9",
"comName": null,
"baud": 9600,
"verification": "none",
"stopBit": 1,
"dataBit": 8,
"state": false,
"address": null
},
"attribute": [],
"creator": "5da994550dc418001b95d36f",
"__v": 0,
"lineTime": "2023-04-26T01:29:33.545Z",
"id": "6446566f00c14b120e0bb948"
},
"creator": {
"_id": "5da994550dc418001b95d36f",
"trueName": "郑元杰",
"username": "13806650937"
},
"createdAt": "2023-05-05T01:47:19.282Z",
"updatedAt": "2023-05-05T01:47:19.282Z",
"__v": 0
}
]
}
}
修改于 2023-07-26 03:10:50