| GET,PUT,OPTIONS | /v1/worker/dispatch/od/vehicle |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class CourierDriverVehicleRequest
Public Overridable Property ClassCode As String
End Class
Public Partial Class CourierDriverVehicleResponse
Public Overridable Property EquipmentID As Integer
Public Overridable Property UnitNumber As String
Public Overridable Property IsOwn As Boolean
Public Overridable Property SetByOffice As Boolean
Public Overridable Property ClassCode As String
Public Overridable Property ClassName As String
Public Overridable Property ClassNameEs As String
Public Overridable Property Cap As Decimal?
Public Overridable Property UnitOne As String
Public Overridable Property UnitMany As String
Public Overridable Property UnitOneEs As String
Public Overridable Property UnitManyEs As String
Public Overridable Property Classes As List(Of CourierVehicleClassView) = New List(Of CourierVehicleClassView)
Public Overridable Property Saved As Boolean
Public Overridable Property SavedText As String
Public Overridable Property SavedTextEs As String
Public Overridable Property MessageEs As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class CourierVehicleClassView
Public Overridable Property Code As String
Public Overridable Property Name As String
Public Overridable Property NameEs As String
Public Overridable Property Hint As String
Public Overridable Property HintEs As String
Public Overridable Property Cap As Decimal
End Class
End Namespace
End Namespace
VB.NET CourierDriverVehicleRequest 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.
PUT /v1/worker/dispatch/od/vehicle HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ClassCode: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
EquipmentID: 0,
UnitNumber: String,
IsOwn: False,
SetByOffice: False,
ClassCode: String,
ClassName: String,
ClassNameEs: String,
Cap: 0,
UnitOne: String,
UnitMany: String,
UnitOneEs: String,
UnitManyEs: String,
Classes:
[
{
Code: String,
Name: String,
NameEs: String,
Hint: String,
HintEs: String,
Cap: 0
}
],
Saved: False,
SavedText: String,
SavedTextEs: String,
MessageEs: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}