POST api/vehicles

Request Information

URI Parameters

None.

Body Parameters

vehicles
NameDescriptionTypeAdditional information
vehicleID

decimal number

None.

vehicle

string

None.

Request Formats

application/json, text/json

Sample:
{
  "vehicleID": 1.0,
  "vehicle": "sample string 2"
}

text/html

Sample:
{"vehicleID":1.0,"vehicle":"sample string 2"}

application/xml, text/xml

Sample:
<vehicles xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWD_WEB.Models">
  <vehicle>sample string 2</vehicle>
  <vehicleID>1</vehicleID>
</vehicles>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

vehicles
NameDescriptionTypeAdditional information
vehicleID

decimal number

None.

vehicle

string

None.

Response Formats

application/json, text/json

Sample:
{
  "vehicleID": 1.0,
  "vehicle": "sample string 2"
}

text/html

Sample:
{"vehicleID":1.0,"vehicle":"sample string 2"}

application/xml, text/xml

Sample:
<vehicles xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWD_WEB.Models">
  <vehicle>sample string 2</vehicle>
  <vehicleID>1</vehicleID>
</vehicles>