设备模板选择器
本地
本地
GET
http://127.0.0.1:9999/api/v1/device_config/menu
设备配置
请求参数
Query 参数
device_type
string
可选
device_config_name
string
可选
protocol_type
string
可选
Header 参数
x-token
string
可选
默认值:
{{x-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 'http://127.0.0.1:9999/api/v1/device_config/menu?device_type=&device_config_name=&protocol_type=' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
array [object {2}]
必需
id
string
必需
name
string
必需
示例
{
"code": 200,
"message": "Get deviceconfig list successfully",
"data": [
{
"id": "9ec6b044-62c0-b67d-273c-15ab942a58ac",
"name": "111"
},
{
"id": "3c907c9c-c331-83e3-db81-d2041beed506",
"name": "这是按流程走的配置1"
},
{
"id": "09c992be-93fd-3c14-5a1e-c9881b35d152",
"name": "string1"
},
{
"id": "52cbfc8d-6ec7-5497-2ff2-9489123277cd",
"name": "极益科技温湿度传感器01"
}
]
}
修改于 2025-03-24 08:04:31