POST api/SensorData

Request Information

URI Parameters

None.

Body Parameters

SensorData
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

integer

None.

TypeId

integer

None.

Time

string

None.

Value

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": 2,
  "TypeId": 3,
  "Time": "sample string 4",
  "Value": 5.1
}

application/xml, text/xml

Sample:
<SensorData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CheapIdeas.Web.Models.Entities">
  <DeviceId>2</DeviceId>
  <Id>1</Id>
  <Time>sample string 4</Time>
  <TypeId>3</TypeId>
  <Value>5.1</Value>
</SensorData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SensorData
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

integer

None.

TypeId

integer

None.

Time

string

None.

Value

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": 2,
  "TypeId": 3,
  "Time": "sample string 4",
  "Value": 5.1
}

application/xml, text/xml

Sample:
<SensorData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CheapIdeas.Web.Models.Entities">
  <DeviceId>2</DeviceId>
  <Id>1</Id>
  <Time>sample string 4</Time>
  <TypeId>3</TypeId>
  <Value>5.1</Value>
</SensorData>