| GET | /v1/GetUserCurrentDataProcess |
|---|
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.DataProcess;
using Mercedes.OS.Vehicle.Shared.POCO;
namespace Mercedes.OS.Vehicle.Shared.POCO
{
public partial class CurrentDataProcessResponse
: DataProcessJob
{
public virtual int Type { get; set; }
public virtual int TotalRecords { get; set; }
public virtual string OriginalFileName { get; set; }
public virtual string DateStarted { get; set; }
public virtual string DateFinished { get; set; }
public virtual List<DataProcessLog> DataProcessResultLogs { get; set; } = [];
public virtual int FailedCount { get; set; }
public virtual int SuccessCount { get; set; }
}
public partial class DataProcessJob
{
public virtual int Id { get; set; }
public virtual string GasId { get; set; }
public virtual string DateCreated { get; set; }
public virtual int ProcessedRecords { get; set; }
public virtual int Status { get; set; }
public virtual string StatusName { get; set; }
public virtual string FileName { get; set; }
}
public partial class DataProcessLog
{
public virtual int Id { get; set; }
public virtual int DataProcess_Id { get; set; }
public virtual int RowNumber { get; set; }
public virtual int FailureReasonId { get; set; }
public virtual string FailureReason { get; set; }
public virtual string MetaData { get; set; }
public virtual string MetaData2 { get; set; }
public virtual bool HasFailed { get; set; }
}
}
namespace Mercedes.VehicleManagement.API.ServiceModel.DataProcess
{
public partial class CurrentDataProcessRequest
: IGet
{
}
}
C# CurrentDataProcessRequest 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/GetUserCurrentDataProcess HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
type: 0,
totalRecords: 0,
originalFileName: String,
dateStarted: String,
dateFinished: String,
dataProcessResultLogs:
[
{
id: 0,
dataProcess_Id: 0,
rowNumber: 0,
failureReasonId: 0,
failureReason: String,
metaData: String,
metaData2: String,
hasFailed: False
}
],
failedCount: 0,
successCount: 0,
id: 0,
gasId: String,
dateCreated: String,
processedRecords: 0,
status: 0,
statusName: String,
fileName: String
}