GET | /v1/Vehicle/Filters/Central | Get Central Stock Vehicle Filters |
---|
import Foundation
import ServiceStack
public class GetCentralVehicleFiltersRequest : IGet, Codable
{
required public init(){}
}
public class VehicleFiltersResponse : Codable
{
public var vehicleFilters:VehicleFilters
required public init(){}
}
public class VehicleFilters : Codable
{
public var ageFilters:[AgeFilter]
public var ageRange:AgeFilter
required public init(){}
}
public class AgeFilter : Codable
{
public var ageLowerBound:Int
public var ageUpperBound:Int
public var label:String
required public init(){}
}
Swift GetCentralVehicleFiltersRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Vehicle/Filters/Central HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"vehicleFilters":{"ageRange":{"ageLowerBound":0,"ageUpperBound":0,"label":"String"}}}