POST api/mobile/GetDescriptorData

Request Information

URI Parameters

None.

Body Parameters

TokenRequestModel
NameDescriptionTypeAdditional information
M2M_DescriptorID

integer

None.

MAC

string

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "M2M_DescriptorID": 1,
  "MAC": "sample string 2",
  "Token": "sample string 3"
}

application/xml, text/xml

Sample:
<TokenRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.RequestModels">
  <Token>sample string 3</Token>
  <M2M_DescriptorID>1</M2M_DescriptorID>
  <MAC>sample string 2</MAC>
</TokenRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TokenRequestModel'.

Response Information

Resource Description

DescriptorResponseModelExtended
NameDescriptionTypeAdditional information
Parameters

Collection of DescriptorParametersResponse

None.

Success

boolean

None.

Message

string

None.

M2M_DescriptorId

integer

None.

Name

string

None.

Type

string

None.

MAC

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Parameters": [
    {
      "Num": 1,
      "Name": "sample string 2",
      "Type": "sample string 3",
      "Value": "sample string 4",
      "IsTargetValueEdit": 5,
      "TimeStamp": "2018-12-16T20:50:30.7958705+03:00",
      "TargetValue": "sample string 6",
      "Success": true,
      "Message": "sample string 8"
    },
    {
      "Num": 1,
      "Name": "sample string 2",
      "Type": "sample string 3",
      "Value": "sample string 4",
      "IsTargetValueEdit": 5,
      "TimeStamp": "2018-12-16T20:50:30.7958705+03:00",
      "TargetValue": "sample string 6",
      "Success": true,
      "Message": "sample string 8"
    }
  ],
  "Success": true,
  "Message": "sample string 2",
  "M2M_DescriptorId": 3,
  "Name": "sample string 4",
  "Type": "sample string 5",
  "MAC": "sample string 6"
}

application/xml, text/xml

Sample:
<DescriptorResponseModelExtended xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.ResponseModels">
  <Message i:nil="true" />
  <Success>false</Success>
  <M2M_DescriptorId>3</M2M_DescriptorId>
  <MAC>sample string 6</MAC>
  <Name>sample string 4</Name>
  <Type>sample string 5</Type>
  <Message>sample string 2</Message>
  <Parameters>
    <DescriptorParametersResponse>
      <Message>sample string 8</Message>
      <Success>true</Success>
      <IsTargetValueEdit>5</IsTargetValueEdit>
      <Name>sample string 2</Name>
      <Num>1</Num>
      <TargetValue>sample string 6</TargetValue>
      <TimeStamp>2018-12-16T20:50:30.7958705+03:00</TimeStamp>
      <Type>sample string 3</Type>
      <Value>sample string 4</Value>
    </DescriptorParametersResponse>
    <DescriptorParametersResponse>
      <Message>sample string 8</Message>
      <Success>true</Success>
      <IsTargetValueEdit>5</IsTargetValueEdit>
      <Name>sample string 2</Name>
      <Num>1</Num>
      <TargetValue>sample string 6</TargetValue>
      <TimeStamp>2018-12-16T20:50:30.7958705+03:00</TimeStamp>
      <Type>sample string 3</Type>
      <Value>sample string 4</Value>
    </DescriptorParametersResponse>
  </Parameters>
  <Success>true</Success>
</DescriptorResponseModelExtended>