POST Car/CarInfoEdit

Request Information

URI Parameters

None.

Body Parameters

CarInfoEditRequest
NameDescriptionTypeAdditional information
car_id

integer

None.

brand_id

integer

None.

model_id

integer

None.

year

integer

None.

fuel_type

string

None.

transmission_type

string

None.

car_type

integer

None.

plate

string

None.

km

string

None.

Request Formats

application/json, text/json

Sample:
{
  "car_id": 1,
  "brand_id": 2,
  "model_id": 3,
  "year": 4,
  "fuel_type": "sample string 5",
  "transmission_type": "sample string 6",
  "car_type": 7,
  "plate": "sample string 8",
  "km": "sample string 9"
}

application/xml, text/xml

Sample:
<CarInfoEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <brand_id>2</brand_id>
  <car_id>1</car_id>
  <car_type>7</car_type>
  <fuel_type>sample string 5</fuel_type>
  <km>sample string 9</km>
  <model_id>3</model_id>
  <plate>sample string 8</plate>
  <transmission_type>sample string 6</transmission_type>
  <year>4</year>
</CarInfoEditRequest>

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 'CarInfoEditRequest'.

Response Information

Resource Description

GeneralResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<AppSettings.GeneralResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject">
  <message>sample string 2</message>
  <success>true</success>
</AppSettings.GeneralResponse>