POST api/v1/LocFromDevice

Request Information

URI Parameters

None.

Body Parameters

DeviceInput
NameDescriptionTypeAdditional information
Mode

string

None.

DeviceID

integer

None.

LocID

integer

None.

CompID

integer

None.

DeviceName

string

None.

DeviceStatus

string

None.

DeviceToken

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mode": "sample string 1",
  "DeviceID": 2,
  "LocID": 3,
  "CompID": 4,
  "DeviceName": "sample string 5",
  "DeviceStatus": "sample string 6",
  "DeviceToken": "sample string 7"
}

application/xml, text/xml

Sample:
<DeviceInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CompID>4</CompID>
  <DeviceID>2</DeviceID>
  <DeviceName>sample string 5</DeviceName>
  <DeviceStatus>sample string 6</DeviceStatus>
  <DeviceToken>sample string 7</DeviceToken>
  <LocID>3</LocID>
  <Mode>sample string 1</Mode>
</DeviceInput>

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

Response Information

Resource Description

DeviceModel
NameDescriptionTypeAdditional information
Result

integer

None.

Message

string

None.

DeviceName

string

None.

MobileNo

string

None.

DeviceID

integer

None.

CompID

integer

None.

LocID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": 1,
  "Message": "sample string 2",
  "DeviceName": "sample string 3",
  "MobileNo": "sample string 4",
  "DeviceID": 5,
  "CompID": 6,
  "LocID": 7
}

application/xml, text/xml

Sample:
<DeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CompID>6</CompID>
  <DeviceID>5</DeviceID>
  <DeviceName>sample string 3</DeviceName>
  <LocID>7</LocID>
  <Message>sample string 2</Message>
  <MobileNo>sample string 4</MobileNo>
  <Result>1</Result>
</DeviceModel>