| GET | /v1/VehicleSwap/Active | Get Active Vehicle Swap records | This endpoint calls the same named endpoint in the Agency API to return active Vehicle Swap records. |
|---|
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.VehicleSwap
Imports Mercedes.Agency.API.Shared.POCO
Namespace Global
Namespace Mercedes.Agency.API.Shared.POCO
Public Partial Class VehicleSwapActive
Public Overridable Property Id As Integer
Public Overridable Property Reference As String
Public Overridable Property OrderType As String
Public Overridable Property VehicleSwapGuid As Guid
Public Overridable Property OrderGuid As Guid
Public Overridable Property Showroom As String
Public Overridable Property CommissionNumber As String
Public Overridable Property RequestReason As String
Public Overridable Property SentToCesar As Boolean
Public Overridable Property CreationDate As Date
Public Overridable Property MaintenanceDate As Date?
End Class
Public Partial Class VehicleSwapActiveResponse
Public Overridable Property ActiveVehicleSwaps As List(Of VehicleSwapActive) = New List(Of VehicleSwapActive)
End Class
End Namespace
Namespace Mercedes.Agency.Orchestration.API.ServiceModel.VehicleSwap
Public Partial Class VehicleSwapActiveRequest
Implements IGet
End Class
End Namespace
End Namespace
VB.NET VehicleSwapActiveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/VehicleSwap/Active HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ActiveVehicleSwaps":[{"Id":0,"Reference":"String","OrderType":"String","VehicleSwapGuid":"00000000000000000000000000000000","OrderGuid":"00000000000000000000000000000000","Showroom":"String","CommissionNumber":"String","RequestReason":"String","SentToCesar":false,"CreationDate":"\/Date(-62135596800000-0000)\/","MaintenanceDate":"\/Date(-62135596800000-0000)\/"}]}