POST | /v1/BackOrder/ValidateBulkAllocations |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Agency.Orchestration.API.ServiceModel.BackOrders
Imports Mercedes.Agency.Orchestration.API.Business.Poco
Imports Mercedes.Agency.API.Shared.POCO
Namespace Global
Namespace Mercedes.Agency.API.Shared.POCO
Public Partial Class BackOrderAllocation
Public Overridable Property Row As Integer
Public Overridable Property Comm As String
Public Overridable Property BackOrder As String
End Class
Public Partial Class InvalidBackOrderAllocation
Inherits BackOrderAllocation
Public Overridable Property ValidationMessage As String
End Class
End Namespace
Namespace Mercedes.Agency.Orchestration.API.Business.Poco
Public Partial Class BackOrderBulkAllocationResponse
Public Overridable Property Message As String
Public Overridable Property Vehicles As BackOrderBulkAllocationVehicles
Public Overridable Property Successful As Boolean
End Class
Public Partial Class BackOrderBulkAllocationVehicles
Public Overridable Property TotalVehicles As Integer
Public Overridable Property ValidVehicles As Integer
Public Overridable Property WarningVehicles As Integer
Public Overridable Property InvalidVehicles As Integer
Public Overridable Property Valid As List(Of BackOrderAllocation) = New List(Of BackOrderAllocation)
Public Overridable Property Warning As List(Of InvalidBackOrderAllocation) = New List(Of InvalidBackOrderAllocation)
Public Overridable Property Invalid As List(Of InvalidBackOrderAllocation) = New List(Of InvalidBackOrderAllocation)
End Class
End Namespace
Namespace Mercedes.Agency.Orchestration.API.ServiceModel.BackOrders
Public Partial Class ValidateBackOrderBulkAllocationsRequest
End Class
End Namespace
End Namespace
VB.NET ValidateBackOrderBulkAllocationsRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/BackOrder/ValidateBulkAllocations HTTP/1.1
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Message":"One or more errors in file","Vehicles":{"TotalVehicles":3,"ValidVehicles":1,"WarningVehicles":1,"InvalidVehicles":1,"Valid":[{"Row":0,"Comm":"String","BackOrder":"String"}],"Warning":[{"ValidationMessage":"String","Row":0,"Comm":"String","BackOrder":"String"}],"Invalid":[{"ValidationMessage":"String","Row":0,"Comm":"String","BackOrder":"String"}]},"Successful":false}