Mercedes.VehicleManagement.API

<back to all web services

GetDataProcessRequest

Requires Authentication
The following routes are available for this service:
GET/v1/GetDataProcess/{ProcessId}
namespace Mercedes.VehicleManagement.API.ServiceModel.DataProcess

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<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() = 
        member val Id:Int32 = new Int32() with get,set
        member val Type: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 TotalRecords:Int32 = new Int32() with get,set
        member val ProcessedRecords:Int32 = new Int32() with get,set
        member val FileName:String = null with get,set
        member val OriginalFileName:String = null with get,set
        member val DateCreated:String = null with get,set
        member val DateStarted:String = null with get,set
        member val DateFinished:String = null with get,set
        member val GasId: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 GetDataProcessRequest() = 
        interface IGet
        member val ProcessId:Int32 = new Int32() with get,set

F# GetDataProcessRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/GetDataProcess/{ProcessId} HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"type":0,"status":0,"statusName":"String","totalRecords":0,"processedRecords":0,"fileName":"String","originalFileName":"String","dateCreated":"String","dateStarted":"String","dateFinished":"String","gasId":"String","dataProcessResultLogs":[{"id":0,"dataProcess_Id":0,"rowNumber":0,"failureReasonId":0,"failureReason":"String","metaData":"String","metaData2":"String","hasFailed":false}],"failedCount":0,"successCount":0}