POST api/VehicleModel/Create

Request Information

URI Parameters

None.

Body Parameters

VehicleModel
NameDescriptionTypeAdditional information
VehicleModelID

globally unique identifier

None.

Name

string

None.

SeatingCapacity

integer

None.

TankCapacity

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleModelID": "05302b60-e97b-4670-bb40-033bf816294f",
  "Name": "sample string 2",
  "SeatingCapacity": 3,
  "TankCapacity": 4
}

application/xml, text/xml

Sample:
<VehicleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootPartner.Entity">
  <Name>sample string 2</Name>
  <SeatingCapacity>3</SeatingCapacity>
  <TankCapacity>4</TankCapacity>
  <VehicleModelID>05302b60-e97b-4670-bb40-033bf816294f</VehicleModelID>
</VehicleModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
IsValid

boolean

None.

Message

Collection of string

None.

WarningMessage

string

None.

Id

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "Message": [
    "sample string 1",
    "sample string 2"
  ],
  "WarningMessage": "sample string 2",
  "Id": "cfbc49d4-6146-430a-b452-ee84af272f3a"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootPartner.Common">
  <Id>cfbc49d4-6146-430a-b452-ee84af272f3a</Id>
  <IsValid>true</IsValid>
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Message>
  <WarningMessage>sample string 2</WarningMessage>
</Result>