GET api/Far/MicroApp/GHourse/DevType/ActionList/Query?ghourseid={ghourseid}&serialid={serialid}
查询某一个大棚(或大棚控制)可以支持的动作的清单。 注意,如果只指定大棚时,大棚所支持的动作要全部列出来。 注意,返回值中的ActionId有可能是重复的(出现在一个大棚用了两种控制器,其ActionId重合的情形)。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ghourseid |
大棚ID(当前大棚必须属于当前用户)。 |
integer |
Required |
| serialid |
控制器的ID。 |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
查询某一个大棚(或大棚控制)可以支持的动作的清单。 注意,如果只指定大棚时,大棚所支持的动作要全部列出来。 注意,返回值中的ActionId有可能是重复的(出现在一个大棚用了两种控制器,其ActionId重合的情形)。
CommonOperationResultWithTagOfIEnumerableOfDev_Type_ActionMapTableItem| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | Collection of Dev_Type_ActionMapTableItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": [
{
"TypeID": "sample string 1",
"ActionCode": 2,
"ActionName": "sample string 3",
"DoActionValue": "sample string 4",
"UnDoActionValue": "sample string 5"
},
{
"TypeID": "sample string 1",
"ActionCode": 2,
"ActionName": "sample string 3",
"DoActionValue": "sample string 4",
"UnDoActionValue": "sample string 5"
}
]
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfDev_Type_ActionMapTableItemnMA5lUge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
<errcode>1</errcode>
<errmsg>sample string 2</errmsg>
<tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.CleverFarmer">
<d2p1:Dev_Type_ActionMapTableItem>
<d2p1:ActionCode>2</d2p1:ActionCode>
<d2p1:ActionName>sample string 3</d2p1:ActionName>
<d2p1:DoActionValue>sample string 4</d2p1:DoActionValue>
<d2p1:TypeID>sample string 1</d2p1:TypeID>
<d2p1:UnDoActionValue>sample string 5</d2p1:UnDoActionValue>
</d2p1:Dev_Type_ActionMapTableItem>
<d2p1:Dev_Type_ActionMapTableItem>
<d2p1:ActionCode>2</d2p1:ActionCode>
<d2p1:ActionName>sample string 3</d2p1:ActionName>
<d2p1:DoActionValue>sample string 4</d2p1:DoActionValue>
<d2p1:TypeID>sample string 1</d2p1:TypeID>
<d2p1:UnDoActionValue>sample string 5</d2p1:UnDoActionValue>
</d2p1:Dev_Type_ActionMapTableItem>
</tag>
</CommonOperationResultWithTagOfArrayOfDev_Type_ActionMapTableItemnMA5lUge>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.