| GET | /v1/GetUserCurrentDataProcess |
|---|
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 DataProcessJob() =
member val Id:Int32 = new Int32() with get,set
member val GasId:String = null with get,set
member val DateCreated:String = null with get,set
member val ProcessedRecords:Int32 = new Int32() with get,set
member val Status:Int32 = new Int32() with get,set
member val StatusName:String = null with get,set
member val FileName:String = null with get,set
[<AllowNullLiteral>]
type DataProcessLog() =
member val Id:Int32 = new Int32() with get,set
member val DataProcess_Id:Int32 = new Int32() with get,set
member val RowNumber:Int32 = new Int32() with get,set
member val FailureReasonId:Int32 = new Int32() with get,set
member val FailureReason:String = null with get,set
member val MetaData:String = null with get,set
member val MetaData2:String = null with get,set
member val HasFailed:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type CurrentDataProcessResponse() =
inherit DataProcessJob()
member val Type:Int32 = new Int32() with get,set
member val TotalRecords:Int32 = new Int32() with get,set
member val OriginalFileName:String = null with get,set
member val DateStarted:String = null with get,set
member val DateFinished:String = null with get,set
member val DataProcessResultLogs:ResizeArray<DataProcessLog> = null with get,set
member val FailedCount:Int32 = new Int32() with get,set
member val SuccessCount:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type CurrentDataProcessRequest() =
interface IGet
F# 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
}