POST AddUsedCar
Request Information
URI Parameters
None.
Body Parameters
Car| Name | Description | Type | Additional information |
|---|---|---|---|
| CarId | integer |
None. |
|
| UserId | globally unique identifier |
None. |
|
| BrandId | integer |
None. |
|
| ModelId | integer |
None. |
|
| Year | integer |
None. |
|
| Price | integer |
None. |
|
| CapcityId | integer |
None. |
|
| KM | integer |
None. |
|
| GovernorateId | integer |
None. |
|
| CityId | integer |
None. |
|
| TransmissionTypeId | integer |
None. |
|
| Doors | integer |
None. |
|
| BodyTypeId | integer |
None. |
|
| Description | string |
None. |
|
| Name | string |
None. |
|
| Tel | string |
None. |
|
| string |
None. |
||
| ShowEmail | boolean |
None. |
|
| FactoryPaint | integer |
None. |
|
| CarDetails | Collection of CarDetails |
None. |
|
| Images | Collection of ImageModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"CarId": 1,
"UserId": "0134fe97-f5f6-49e3-8bc6-13c130a7d401",
"BrandId": 2,
"ModelId": 3,
"Year": 4,
"Price": 5,
"CapcityId": 6,
"KM": 7,
"GovernorateId": 8,
"CityId": 9,
"TransmissionTypeId": 10,
"Doors": 11,
"BodyTypeId": 12,
"Description": "sample string 13",
"Name": "sample string 14",
"Tel": "sample string 15",
"Email": "sample string 16",
"ShowEmail": true,
"FactoryPaint": 1,
"CarDetails": [
{
"Id": 1,
"KeyId": 2,
"Value": "sample string 3"
},
{
"Id": 1,
"KeyId": 2,
"Value": "sample string 3"
}
],
"Images": [
{
"Image": "sample string 1"
},
{
"Image": "sample string 1"
}
]
}
application/xml, text/xml
Sample:
<ValuesController.Car xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasriaAPI.Controllers">
<BodyTypeId>12</BodyTypeId>
<BrandId>2</BrandId>
<CapcityId>6</CapcityId>
<CarDetails>
<ValuesController.CarDetails>
<Id>1</Id>
<KeyId>2</KeyId>
<Value>sample string 3</Value>
</ValuesController.CarDetails>
<ValuesController.CarDetails>
<Id>1</Id>
<KeyId>2</KeyId>
<Value>sample string 3</Value>
</ValuesController.CarDetails>
</CarDetails>
<CarId>1</CarId>
<CityId>9</CityId>
<Description>sample string 13</Description>
<Doors>11</Doors>
<Email>sample string 16</Email>
<FactoryPaint>1</FactoryPaint>
<GovernorateId>8</GovernorateId>
<Images>
<ValuesController.ImageModel>
<Image>sample string 1</Image>
</ValuesController.ImageModel>
<ValuesController.ImageModel>
<Image>sample string 1</Image>
</ValuesController.ImageModel>
</Images>
<KM>7</KM>
<ModelId>3</ModelId>
<Name>sample string 14</Name>
<Price>5</Price>
<ShowEmail>true</ShowEmail>
<Tel>sample string 15</Tel>
<TransmissionTypeId>10</TransmissionTypeId>
<UserId>0134fe97-f5f6-49e3-8bc6-13c130a7d401</UserId>
<Year>4</Year>
</ValuesController.Car>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.