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": "27058809-372f-4ceb-86c9-556c750dd5f2",
  "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>27058809-372f-4ceb-86c9-556c750dd5f2</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": "67d36ef5-2a95-4335-8d8e-9309206124d1"
}

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>67d36ef5-2a95-4335-8d8e-9309206124d1</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>