POST api/device/json

Request Information

URI Parameters

None.

Body Parameters

Collection of Object

None.

Request Formats

application/json, text/json, application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DeviceResponseModel
NameDescriptionTypeAdditional information
M2M_Id

integer

None.

M2M_Parameters

Collection of M2M_ParameterBase

None.

Success

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "M2M_Id": 1,
  "M2M_Parameters": [
    {
      "Num": 1,
      "Value": "sample string 2"
    },
    {
      "Num": 1,
      "Value": "sample string 2"
    }
  ],
  "Success": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<DeviceResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.ResponseModels">
  <Message>sample string 3</Message>
  <Success>true</Success>
  <M2M_Id>1</M2M_Id>
  <M2M_Parameters xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models">
    <d2p1:M2M_ParameterBase>
      <d2p1:Num>1</d2p1:Num>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:M2M_ParameterBase>
    <d2p1:M2M_ParameterBase>
      <d2p1:Num>1</d2p1:Num>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:M2M_ParameterBase>
  </M2M_Parameters>
</DeviceResponseModel>