POST api/showroom/updateFilter

Gets filter options according to the available data based on the search terms provided.

Request Information

URI Parameters

None.

Body Parameters

ERP.Domain.Common.VehicleData.Showroom.VehicleShowroomFilterRequest
NameDescriptionTypeAdditional information
Makes

Collection of string

None.

Models

Collection of string

None.

FuelType

Collection of string

None.

MinimumPrice

decimal number

None.

MaximumPrice

decimal number

None.

MaximumMileage

integer

None.

RegistrationYear

integer

None.

Doors

Collection of integer

None.

Transmissions

Collection of string

None.

Colours

Collection of string

None.

EngineSize

Collection of string

None.

MaxMonthlyPrice

decimal number

None.

BodyTypes

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "makes": [
    "sample string 1",
    "sample string 2"
  ],
  "models": [
    "sample string 1",
    "sample string 2"
  ],
  "fuelType": [
    "sample string 1",
    "sample string 2"
  ],
  "minimumPrice": 1.0,
  "maximumPrice": 1.0,
  "maximumMileage": 1,
  "registrationYear": 1,
  "doors": [
    1,
    2
  ],
  "transmissions": [
    "sample string 1",
    "sample string 2"
  ],
  "colours": [
    "sample string 1",
    "sample string 2"
  ],
  "engineSize": [
    "sample string 1",
    "sample string 2"
  ],
  "maxMonthlyPrice": 1.0,
  "bodyTypes": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<VehicleShowroomFilterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.VehicleData.Showroom">
  <BodyTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </BodyTypes>
  <Colours xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Colours>
  <Doors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Doors>
  <EngineSize xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </EngineSize>
  <FuelType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </FuelType>
  <Makes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Makes>
  <MaxMonthlyPrice>1</MaxMonthlyPrice>
  <MaximumMileage>1</MaximumMileage>
  <MaximumPrice>1</MaximumPrice>
  <MinimumPrice>1</MinimumPrice>
  <Models xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Models>
  <RegistrationYear>1</RegistrationYear>
  <Transmissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Transmissions>
</VehicleShowroomFilterRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ERP.Domain.Common.VehicleData.Showroom.VehicleShowroomFilterRequest'.

Response Information

Resource Description

The updated

ERP.Domain.Common.VehicleData.Showroom.VehicleShowroomFilterResponse
NameDescriptionTypeAdditional information
Makes

Collection of string

None.

Models

Collection of ERP.Domain.Common.VehicleData.Showroom.VehicleShowroomFilterResponseVehicleModel

None.

MinimumPrice

decimal number

None.

MaximumPrice

decimal number

None.

MaximumMileage

integer

None.

RegistrationYears

Collection of string

None.

Doors

Collection of byte

None.

FuelTypes

Collection of string

None.

Colours

Collection of string

None.

Transmission

Collection of string

None.

MaxMonthlyPrice

decimal number

None.

BodyTypes

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "makes": [
    "sample string 1",
    "sample string 2"
  ],
  "models": [
    {
      "make": "sample string 1",
      "model": "sample string 2"
    },
    {
      "make": "sample string 1",
      "model": "sample string 2"
    }
  ],
  "minimumPrice": 1.0,
  "maximumPrice": 2.0,
  "maximumMileage": 3,
  "registrationYears": [
    "sample string 1",
    "sample string 2"
  ],
  "doors": [
    64,
    64
  ],
  "fuelTypes": [
    "sample string 1",
    "sample string 2"
  ],
  "colours": [
    "sample string 1",
    "sample string 2"
  ],
  "transmission": [
    "sample string 1",
    "sample string 2"
  ],
  "maxMonthlyPrice": 1.0,
  "bodyTypes": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<VehicleShowroomFilterResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.VehicleData.Showroom">
  <BodyTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </BodyTypes>
  <Colours xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Colours>
  <Doors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:unsignedByte>64</d2p1:unsignedByte>
    <d2p1:unsignedByte>64</d2p1:unsignedByte>
  </Doors>
  <FuelTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </FuelTypes>
  <Makes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Makes>
  <MaxMonthlyPrice>1</MaxMonthlyPrice>
  <MaximumMileage>3</MaximumMileage>
  <MaximumPrice>2</MaximumPrice>
  <MinimumPrice>1</MinimumPrice>
  <Models>
    <VehicleShowroomFilterResponseVehicleModel>
      <Make>sample string 1</Make>
      <Model>sample string 2</Model>
    </VehicleShowroomFilterResponseVehicleModel>
    <VehicleShowroomFilterResponseVehicleModel>
      <Make>sample string 1</Make>
      <Model>sample string 2</Model>
    </VehicleShowroomFilterResponseVehicleModel>
  </Models>
  <RegistrationYears xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </RegistrationYears>
  <Transmission xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Transmission>
</VehicleShowroomFilterResponse>