POST api/Command/Search
Request Information
URI Parameters
None.
Body Parameters
SearchCommandModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId | integer |
None. |
|
| Time | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeviceId": 1,
"Time": "sample string 2"
}
application/xml, text/xml
Sample:
<SearchCommandModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CheapIdeas.Web.Models"> <DeviceId>1</DeviceId> <Time>sample string 2</Time> </SearchCommandModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of Command| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| DeviceId | integer |
None. |
|
| Time | string |
None. |
|
| Value | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"DeviceId": 2,
"Time": "sample string 3",
"Value": "sample string 4"
},
{
"Id": 1,
"DeviceId": 2,
"Time": "sample string 3",
"Value": "sample string 4"
}
]
application/xml, text/xml
Sample:
<ArrayOfCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CheapIdeas.Web.Models.Entities">
<Command>
<DeviceId>2</DeviceId>
<Id>1</Id>
<Time>sample string 3</Time>
<Value>sample string 4</Value>
</Command>
<Command>
<DeviceId>2</DeviceId>
<Id>1</Id>
<Time>sample string 3</Time>
<Value>sample string 4</Value>
</Command>
</ArrayOfCommand>