Mercedes.VehicleManagement.API

<back to all web services

SecuredVehicleAuditRequest

SecuredAudit
Requires Authentication
The following routes are available for this service:
GET/v1/SecuredAudit/{identifier}Gets vehicle secured audits for supplied identifierGets vehicle secured audits for supplied identifier
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Mercedes.VehicleManagement.API.ServiceModel.VehicleServiceModels;
using Mercedes.VehicleManagement.API.Shared.Clients.Vehicle;
using Mercedes.OS.Vehicle.Shared.POCO;

namespace Mercedes.OS.Vehicle.Shared.POCO
{
    public partial class VehicleAuditDetails
    {
        public virtual string UserId { get; set; }
        public virtual bool Status { get; set; }
        public virtual string Notes { get; set; }
        public virtual string CreationDate { get; set; }
    }

    public partial class VehicleSecuredAuditDetails
        : VehicleAuditDetails
    {
        public virtual string Vin { get; set; }
        public virtual string CommissionNumber { get; set; }
        public virtual bool IsBulkUpdate { get; set; }
    }

}

namespace Mercedes.VehicleManagement.API.ServiceModel.VehicleServiceModels
{
    public partial class SecuredVehicleAuditRequest
        : IGet
    {
        public virtual string Identifier { get; set; }
    }

}

namespace Mercedes.VehicleManagement.API.Shared.Clients.Vehicle
{
    public partial class SecuredVehicleAuditResponse
    {
        public virtual List<VehicleSecuredAuditDetails> VehicleSecuredAudits { get; set; }
    }

}

C# SecuredVehicleAuditRequest DTOs

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

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"vehicleSecuredAudits":[{"vin":"String","commissionNumber":"String","isBulkUpdate":false,"userId":"String","status":false,"notes":"String","creationDate":"String"}]}