POST | /v1/GetAllDataProcessList | Get list of all data processes by the type | |
---|---|---|---|
POST | /v1/GetDataProcessList | Get list of data processes created by the user |
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.VehicleManagement.API.Shared.POCO.DataProcess;
namespace Mercedes.VehicleManagement.API.ServiceModel.DataProcess
{
public partial class DataProcessListByTypeRequest
: DataProcessListRequest
{
}
public partial class DataProcessListRequest
: IPost
{
public virtual List<int> Type { get; set; } = [];
}
}
namespace Mercedes.VehicleManagement.API.Shared.POCO.DataProcess
{
public partial class DataProcessListResponse
{
public virtual List<DataProcessResponse> DataProcesses { get; set; } = [];
}
public partial class DataProcessResponse
{
public virtual int Id { get; set; }
public virtual int Type { get; set; }
public virtual string TypeName { get; set; }
public virtual string StatusName { get; set; }
public virtual int Status { get; set; }
public virtual int TotalRecords { get; set; }
public virtual int ProcessedRecords { get; set; }
public virtual string FileName { get; set; }
public virtual string OriginalFileName { get; set; }
public virtual string DateCreated { get; set; }
public virtual string DateStarted { get; set; }
public virtual string DateFinished { get; set; }
public virtual string GasId { get; set; }
}
}
C# DataProcessListByTypeRequest 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.
POST /v1/GetAllDataProcessList HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
type:
[
0
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { dataProcesses: [ { id: 0, type: 0, typeName: String, statusName: String, status: 0, totalRecords: 0, processedRecords: 0, fileName: String, originalFileName: String, dateCreated: String, dateStarted: String, dateFinished: String, gasId: String } ] }