获取通用物模型列表
POST
/api/v1/things/schema/common/index
things/schema/commonthingsSchemaCommon
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
page
object (PageInfo)
可选
page
integer <int64>
页码
size
integer <int64>
每页大小
orders
array[object (OrderBy) {2}]
排序
type
integer <int64>
可选
types
array[integer <int64>]
可选
identifiers
array[string]
过滤标识符列表
productIDs
array[string]
可选
name
string
可选
productCategoryID
integer <int64>
可选
productCategoryWithFather
boolean
可选
isCanSceneLinkage
integer <int64>
是否可以场景联动
funcGroup
integer <int64>
可选
userPerm
integer <int64>
可选
groupID
integer <int64>
可选
groupIDs
array[integer <int64>]
可选
projectID
string
可选
areaID
string
可选
areaIDPath
string
可选
propertyMode
string
可选
controlMode
integer <int64>
可选
productSceneMode
string
可选
示例
{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"type": 0,
"types": [
0
],
"identifiers": [
"string"
],
"productIDs": [
"string"
],
"name": "string",
"productCategoryID": 0,
"productCategoryWithFather": true,
"isCanSceneLinkage": 0,
"funcGroup": 0,
"userPerm": 0,
"groupID": 0,
"groupIDs": [
0
],
"projectID": "string",
"areaID": "string",
"areaIDPath": "string",
"propertyMode": "string",
"controlMode": 0,
"productSceneMode": "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 '/api/v1/things/schema/common/index' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (CommonSchemaIndexResp)
可选
list
array[object (CommonSchemaInfo) {15}]
必需
page
integer <int64>
页码
pageSize
integer <int64>
每页大小
total
integer <int64>
可选
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"id": 0,
"type": 0,
"identifier": "string",
"extendConfig": "string",
"name": "string",
"desc": "string",
"required": 0,
"affordance": "string",
"isCanSceneLinkage": 0,
"funcGroup": 0,
"userPerm": 0,
"isHistory": 0,
"isPassword": 0,
"order": 0,
"controlMode": 0
}
],
"page": 0,
"pageSize": 0,
"total": 0
}
}
修改于 2025-03-25 08:05:06