POST api/CarMaintain/MaintainList

Vehicle maintenance record

Request Information

Body Parameters

the vehicle maintenance record takes the parameter

MaintainInfoModel
NameDescriptionTypeAdditional information
DeviceId

device id

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:
{
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<MaintainInfoModel 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>
  <DeviceId>1</DeviceId>
</MaintainInfoModel>

Response Information

Resource Description

State value is:
0. Indicates success
100. says no data

CarMaintainListResult
NameDescriptionTypeAdditional information
Items

Group information collection

Collection of CarMaintainListInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Cost": 1.0,
      "Created": "sample string 2",
      "DeviceID": 3,
      "Distance": 4.0,
      "Id": 5,
      "MaintainTime": "sample string 6",
      "MaintainType": 7
    },
    {
      "Cost": 1.0,
      "Created": "sample string 2",
      "DeviceID": 3,
      "Distance": 4.0,
      "Id": 5,
      "MaintainTime": "sample string 6",
      "MaintainType": 7
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<CarMaintainListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:CarMaintainListInfo>
      <d2p1:Cost>1</d2p1:Cost>
      <d2p1:Created>sample string 2</d2p1:Created>
      <d2p1:DeviceID>3</d2p1:DeviceID>
      <d2p1:Distance>4</d2p1:Distance>
      <d2p1:Id>5</d2p1:Id>
      <d2p1:MaintainTime>sample string 6</d2p1:MaintainTime>
      <d2p1:MaintainType>7</d2p1:MaintainType>
    </d2p1:CarMaintainListInfo>
    <d2p1:CarMaintainListInfo>
      <d2p1:Cost>1</d2p1:Cost>
      <d2p1:Created>sample string 2</d2p1:Created>
      <d2p1:DeviceID>3</d2p1:DeviceID>
      <d2p1:Distance>4</d2p1:Distance>
      <d2p1:Id>5</d2p1:Id>
      <d2p1:MaintainTime>sample string 6</d2p1:MaintainTime>
      <d2p1:MaintainType>7</d2p1:MaintainType>
    </d2p1:CarMaintainListInfo>
  </Items>
</CarMaintainListResult>