GET | /v1/SecuredAudit/{identifier} | Gets vehicle secured audits for supplied identifier | Gets vehicle secured audits for supplied identifier |
---|
namespace Mercedes.OS.Vehicle.Shared.POCO
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type VehicleAuditDetails() =
member val UserId:String = null with get,set
member val Status:Boolean = new Boolean() with get,set
member val Notes:String = null with get,set
member val CreationDate:String = null with get,set
[<AllowNullLiteral>]
type VehicleSecuredAuditDetails() =
inherit VehicleAuditDetails()
member val Vin:String = null with get,set
member val CommissionNumber:String = null with get,set
member val IsBulkUpdate:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type SecuredVehicleAuditResponse() =
member val VehicleSecuredAudits:ResizeArray<VehicleSecuredAuditDetails> = null with get,set
[<AllowNullLiteral>]
type SecuredVehicleAuditRequest() =
interface IGet
member val Identifier:String = null with get,set
F# SecuredVehicleAuditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/SecuredAudit/{identifier} HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SecuredVehicleAuditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.Clients.Vehicle"> <VehicleSecuredAudits xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO"> <d2p1:VehicleSecuredAuditDetails> <d2p1:CreationDate>String</d2p1:CreationDate> <d2p1:Notes>String</d2p1:Notes> <d2p1:Status>false</d2p1:Status> <d2p1:UserId>String</d2p1:UserId> <d2p1:CommissionNumber>String</d2p1:CommissionNumber> <d2p1:IsBulkUpdate>false</d2p1:IsBulkUpdate> <d2p1:Vin>String</d2p1:Vin> </d2p1:VehicleSecuredAuditDetails> </VehicleSecuredAudits> </SecuredVehicleAuditResponse>