POST api/Vehicle/save_vehicle

Request Information

URI Parameters

None.

Body Parameters

VehicleModel
NameDescriptionTypeAdditional information
Code

integer

None.

Name

string

None.

TypeCode

integer

None.

VehicleNo

string

None.

MaxSeatNo

integer

None.

MaxRow

integer

None.

MaxCol

integer

None.

DOT

string

None.

PostedBy

integer

None.

VehicleType

string

None.

Layout

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": 1,
  "Name": "sample string 2",
  "TypeCode": 3,
  "VehicleNo": "sample string 4",
  "MaxSeatNo": 5,
  "MaxRow": 6,
  "MaxCol": 7,
  "DOT": "sample string 8",
  "PostedBy": 9,
  "VehicleType": "sample string 10",
  "Layout": "sample string 11"
}

application/xml, text/xml

Sample:
<VehicleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TravelAPI.Models">
  <Code>1</Code>
  <DOT>sample string 8</DOT>
  <Layout>sample string 11</Layout>
  <MaxCol>7</MaxCol>
  <MaxRow>6</MaxRow>
  <MaxSeatNo>5</MaxSeatNo>
  <Name>sample string 2</Name>
  <PostedBy>9</PostedBy>
  <TypeCode>3</TypeCode>
  <VehicleNo>sample string 4</VehicleNo>
  <VehicleType>sample string 10</VehicleType>
</VehicleModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfString
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

Message

string

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "Message": "sample string 2",
  "Data": "sample string 3"
}

application/xml, text/xml

Sample:
<ResultModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TravelAPI.Models">
  <Data>sample string 3</Data>
  <Message>sample string 2</Message>
  <ResponseCode>1</ResponseCode>
</ResultModelOfstring>