POST api/Device/SimpleListDevice

True artisan add,obtain simple device list caoxianbing 20170106 add

Request Information

Body Parameters

DeviceSimpleListModel
NameDescriptionTypeAdditional information
UserId

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<DeviceSimpleListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <UserId>1</UserId>
</DeviceSimpleListModel>

Response Information

Resource Description

DeviceListSimpleResult
NameDescriptionTypeAdditional information
Items

Collection of DeviceSimpleInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "DeviceId": 1,
      "DeviceName": "sample string 2",
      "SerialNumber": "sample string 3",
      "Phone": "sample string 4"
    },
    {
      "DeviceId": 1,
      "DeviceName": "sample string 2",
      "SerialNumber": "sample string 3",
      "Phone": "sample string 4"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<DeviceListSimpleResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items>
    <DeviceSimpleInfo>
      <DeviceId>1</DeviceId>
      <DeviceName>sample string 2</DeviceName>
      <Phone>sample string 4</Phone>
      <SerialNumber>sample string 3</SerialNumber>
    </DeviceSimpleInfo>
    <DeviceSimpleInfo>
      <DeviceId>1</DeviceId>
      <DeviceName>sample string 2</DeviceName>
      <Phone>sample string 4</Phone>
      <SerialNumber>sample string 3</SerialNumber>
    </DeviceSimpleInfo>
  </Items>
</DeviceListSimpleResult>