POST api/DeviceCommunication/GetEntityData

Request Information

URI Parameters

None.

Body Parameters

EntityListRequest

None.

Request Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<EntityListRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sterlite_WebApi.Request" />

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 'EntityListRequest'.

Response Information

Resource Description

EntityListResponse
NameDescriptionTypeAdditional information
ErrorCode

string

None.

ErrorDescription

string

None.

lstEntityData

Collection of clsResEntity

None.

Response Formats

application/json, text/json

Sample:
{
  "lstEntityData": [
    {
      "mastCode": 1,
      "mastName": "sample string 2"
    },
    {
      "mastCode": 1,
      "mastName": "sample string 2"
    }
  ],
  "errorCode": "sample string 1",
  "errorDescription": "sample string 2"
}

application/xml, text/xml

Sample:
<EntityListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sterlite_WebApi.Response">
  <ErrorCode>sample string 1</ErrorCode>
  <ErrorDescription>sample string 2</ErrorDescription>
  <lstEntityData>
    <clsResEntity>
      <MastCode>1</MastCode>
      <MastName>sample string 2</MastName>
    </clsResEntity>
    <clsResEntity>
      <MastCode>1</MastCode>
      <MastName>sample string 2</MastName>
    </clsResEntity>
  </lstEntityData>
</EntityListResponse>