POST api/CarMaintain/MaintainInfo

Vehicle maintenance information

Request Information

Body Parameters

Maintain information to obtain parameters

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. indicates that list does not have data

MaintainInfoResult
NameDescriptionTypeAdditional information
Id

integer

None.

Message

string

None.

Distance

decimal number

None.

NextTime

string

None.

LastMaintain

CarMaintainListInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Message": "sample string 2",
  "Distance": 3.0,
  "NextTime": "sample string 4",
  "LastMaintain": {
    "Cost": 1.0,
    "Created": "sample string 2",
    "DeviceID": 3,
    "Distance": 4.0,
    "Id": 5,
    "MaintainTime": "sample string 6",
    "MaintainType": 7
  },
  "State": 5
}

application/xml, text/xml

Sample:
<MaintainInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>5</State>
  <Distance>3</Distance>
  <Id>1</Id>
  <LastMaintain xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <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>
  </LastMaintain>
  <Message>sample string 2</Message>
  <NextTime>sample string 4</NextTime>
</MaintainInfoResult>