Mercedes.Agency.Orchestration.API

<back to all web services

VehicleSwapResolveAuditByGuidRequest

VehicleSwap
Requires Authentication
The following routes are available for this service:
GET/v1/vehicleswap/resolve/{VehicleSwapGuid}/auditGet mismatched vehicle swap auditsGet mismatched vehicle swap audits for given vehicle swap
import Foundation
import ServiceStack

public class VehicleSwapResolveAuditByGuidRequest : BaseVehicleSwapResolveRequest
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class BaseVehicleSwapResolveRequest : Codable
{
    public var vehicleSwapGuid:String

    required public init(){}
}

public class VehicleSwapResolveAuditResponse : Codable
{
    public var audits:[DisplayVehicleSwapResolveAudit] = []

    required public init(){}
}

public class DisplayVehicleSwapResolveAudit : Codable
{
    public var id:Int
    public var action:String
    public var created:Date
    public var guid:String
    public var user:String

    required public init(){}
}


Swift VehicleSwapResolveAuditByGuidRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/vehicleswap/resolve/{VehicleSwapGuid}/audit 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

{
	Audits: 
	[
		{
			Id: 0,
			Action: String,
			Created: 0001-01-01,
			Guid: 00000000000000000000000000000000,
			User: String
		}
	]
}