POST api/Device/DefaultParams
还原参数
Request Information
URI Parameters
None.
Body Parameters
M_DeviceParams| Name | Description | Type | Additional information |
|---|---|---|---|
| SN |
设备序列号 |
integer |
Required |
| Type |
参数类型 //IK,ECC |
string |
Required |
| List |
参数 |
Collection of M_DeviceParamsItem |
Required |
Request Formats
application/json, text/json
Sample:
{
"SN": 1,
"Type": "sample string 2",
"List": [
{
"Name": "sample string 1",
"T": 2,
"Value": 3,
"Str": "sample string 4"
},
{
"Name": "sample string 1",
"T": 2,
"Value": 3,
"Str": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<M_DeviceParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models">
<List>
<M_DeviceParamsItem>
<Name>sample string 1</Name>
<Str>sample string 4</Str>
<T>2</T>
<Value>3</Value>
</M_DeviceParamsItem>
<M_DeviceParamsItem>
<Name>sample string 1</Name>
<Str>sample string 4</Str>
<T>2</T>
<Value>3</Value>
</M_DeviceParamsItem>
</List>
<SN>1</SN>
<Type>sample string 2</Type>
</M_DeviceParams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
M_Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Contant |
内容,包含返回所需要的类 |
Object |
Required |
| Status |
状态 |
integer |
Required |
| Msg |
信息 |
string |
Required |
| Num |
数值,数据变动条数或增加时返回的ID |
integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"Contant": {},
"Status": 2,
"Msg": "sample string 3",
"Num": 4
}
application/xml, text/xml
Sample:
<M_Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models"> <Msg>sample string 3</Msg> <Num>4</Num> <Status>2</Status> <Contant /> </M_Response>