POST api/shopregistration/api/mobimech/addvehicle

Request Information

URI Parameters

None.

Body Parameters

VehiclePost
NameDescriptionTypeAdditional information
VehicleName

string

None.

BrandID

integer

None.

YearOfManufacture

integer

None.

EngineSizeCC

integer

None.

IsScooter

boolean

None.

BodyTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleName": "sample string 1",
  "BrandID": 1,
  "YearOfManufacture": 1,
  "EngineSizeCC": 1,
  "IsScooter": true,
  "BodyTypeId": 1
}

application/xml, text/xml

Sample:
<VehiclePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PostLibrary.Vehicle">
  <BodyTypeId>1</BodyTypeId>
  <BrandID>1</BrandID>
  <EngineSizeCC>1</EngineSizeCC>
  <IsScooter>true</IsScooter>
  <VehicleName>sample string 1</VehicleName>
  <YearOfManufacture>1</YearOfManufacture>
</VehiclePost>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VehiclePost'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.