GET api/AgrTech/Plant/Table/Query/ById?plantid={plantid}
以主键为依据,查询某一个特定的作物的行,主要用于修改前获取数据。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| plantid |
作物的ID。 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
以主键为依据,查询某一个特定的作物的行,主要用于修改前获取数据。
CommonOperationResultWithTagOfAgrTec_PlantTableItem| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | AgrTec_PlantTableItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": {
"PlantId": "sample string 1",
"PlantName": "sample string 2"
}
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfAgrTec_PlantTableItemnMA5lUge 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:PlantId>sample string 1</d2p1:PlantId>
<d2p1:PlantName>sample string 2</d2p1:PlantName>
</tag>
</CommonOperationResultWithTagOfAgrTec_PlantTableItemnMA5lUge>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.