POST Model/GetModels?brandId={brandId}&carType={carType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandId

integer

Required

carType

integer

Required

Body Parameters

None.

Response Information

Resource Description

ModelResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

models

Collection of Model

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "models": [
    {
      "ID": 1,
      "brand_id": 1,
      "name": "sample string 2",
      "segment": "sample string 3",
      "min_recomendation_price": 1,
      "max_recomendation_price": 1,
      "car_type": 1
    },
    {
      "ID": 1,
      "brand_id": 1,
      "name": "sample string 2",
      "segment": "sample string 3",
      "min_recomendation_price": 1,
      "max_recomendation_price": 1,
      "car_type": 1
    }
  ]
}

application/xml, text/xml

Sample:
<ModelController.ModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Controllers">
  <message>sample string 2</message>
  <models xmlns:d2p1="http://schemas.datacontract.org/2004/07/RentekerAPIProject">
    <d2p1:Model>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:brand_id>1</d2p1:brand_id>
      <d2p1:car_type>1</d2p1:car_type>
      <d2p1:max_recomendation_price>1</d2p1:max_recomendation_price>
      <d2p1:min_recomendation_price>1</d2p1:min_recomendation_price>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:segment>sample string 3</d2p1:segment>
    </d2p1:Model>
    <d2p1:Model>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:brand_id>1</d2p1:brand_id>
      <d2p1:car_type>1</d2p1:car_type>
      <d2p1:max_recomendation_price>1</d2p1:max_recomendation_price>
      <d2p1:min_recomendation_price>1</d2p1:min_recomendation_price>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:segment>sample string 3</d2p1:segment>
    </d2p1:Model>
  </models>
  <success>true</success>
</ModelController.ModelResponse>