GET | /v1/vehicle/MotabilityVehicles | Get motability eligible vehicles |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Agency.Orchestration.API.ServiceModel.Vehicles
Imports Mercedes.Agency.API.Shared.POCO
Imports Mercedes.OS.Vehicle.Shared.POCO
Imports Mercedes.OS.Vehicle.Shared.POCO.Filters.v2
Namespace Global
Namespace Mercedes.Agency.API.Shared.POCO
Public Partial Class MotabilityStockResponse(Of T)
Public Overridable Property TotalVehicles As Integer
Public Overridable Property Vehicles As List(Of MotabilityVehicle) = New List(Of MotabilityVehicle)
End Class
End Namespace
Namespace Mercedes.Agency.Orchestration.API.ServiceModel.Vehicles
Public Partial Class GetMotabilityVehiclesRequest
End Class
End Namespace
Namespace Mercedes.OS.Vehicle.Shared.POCO
Public Partial Class MotabilityVehicle
Implements IPackages
Implements IMotabilityFilterFields
Public Overridable Property CommissionNumber As String
Public Overridable Property Vin As String Implements IMotabilityFilterFields.Vin
Public Overridable Property Vtn As String
Public Overridable Property Description As String
Public Overridable Property Model As String
Public Overridable Property BM7NST As String Implements IMotabilityFilterFields.BM7NST
Public Overridable Property ModelYearCode As String Implements IMotabilityFilterFields.ModelYearCode
Public Overridable Property HalfModelYearCode As String Implements IMotabilityFilterFields.HalfModelYearCode
Public Overridable Property FullModelYearCode As String
Public Overridable Property Fuel As String
Public Overridable Property PrimaryPaintColourCode As String Implements IMotabilityFilterFields.PrimaryPaintColourCode
Public Overridable Property Colour As String
Public Overridable Property PrimaryUpholsteryCode As String Implements IMotabilityFilterFields.PrimaryUpholsteryCode
Public Overridable Property Upholstery As String
Public Overridable Property Packages As ICollection(Of Package) Implements IPackages.Packages
Public Overridable Property Account As String
Public Overridable Property Location As String
Public Overridable Property IsDisplayStock As Boolean
Public Overridable Property DisplayStockAgent As String
Public Overridable Property IsSellable As Boolean
End Class
End Namespace
Namespace Mercedes.OS.Vehicle.Shared.POCO.Filters.v2
Public Partial Class Package
Public Overridable Property Id As Integer
Public Overridable Property Description As String
End Class
End Namespace
End Namespace
VB.NET GetMotabilityVehiclesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/vehicle/MotabilityVehicles HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { TotalVehicles: 0, Vehicles: [ { CommissionNumber: String, Vin: String, Vtn: String, Description: String, Model: String, BM7NST: String, ModelYearCode: String, HalfModelYearCode: String, FullModelYearCode: String.String, Fuel: String, PrimaryPaintColourCode: String, Colour: String, PrimaryUpholsteryCode: String, Upholstery: String, Account: String, Location: String, IsDisplayStock: False, DisplayStockAgent: String, IsSellable: False } ] }