POST | /v1/Vehicle/SecuredStatus | Set secured status for vehicle |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.VehicleManagement.API.Shared.POCO
Imports Mercedes.DataProcess.Shared
Namespace Global
Namespace Mercedes.DataProcess.Shared
Public Partial Class ValidateSecuredStatusResponse
Public Overridable Property ValidateVehicleResponses As List(Of ValidateVehicleResponse) = New List(Of ValidateVehicleResponse)
End Class
Public Partial Class ValidateVehicleResponse
Public Overridable Property Comm As String
Public Overridable Property FailureReason As String
Public Overridable Property FailureReasonId As Integer?
End Class
End Namespace
Namespace Mercedes.VehicleManagement.API.Shared.POCO
Public Partial Class SecuredStatusRequest
Implements IPost
Public Overridable Property CommissionNumber As String
Public Overridable Property VehicleType As String
Public Overridable Property Reason As String
Public Overridable Property Secured As Boolean
End Class
End Namespace
End Namespace
VB.NET SecuredStatusRequest 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/Vehicle/SecuredStatus HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{"commissionNumber":"String","vehicleType":"String","reason":"String","secured":false}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"validateVehicleResponses":[{}]}