| GET,OPTIONS | /v1/records/warehouse/containers |
|---|
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 ContainerItemDto
Public Overridable Property Id As String
Public Overridable Property Name As String
Public Overridable Property Flag As String
Public Overridable Property Warn As Boolean
End Class
Public Partial Class ContainersRequest
End Class
Public Partial Class ContainersResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Containers As List(Of RecordContainerDto) = New List(Of RecordContainerDto)
End Class
Public Partial Class RecordContainerDto
Public Overridable Property ContainerId As Integer
Public Overridable Property Barcode As String
Public Overridable Property Kind As String
Public Overridable Property Icon As String
Public Overridable Property Name As String
Public Overridable Property ZoneKey As String
Public Overridable Property Slot As String
Public Overridable Property Status As String
Public Overridable Property CheckoutJson As String
Public Overridable Property Items As List(Of ContainerItemDto) = New List(Of ContainerItemDto)
End Class
End Namespace
End Namespace
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/records/warehouse/containers HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Containers:
[
{
ContainerId: 0,
Barcode: String,
Kind: String,
Icon: String,
Name: String,
ZoneKey: String,
Slot: String,
Status: String,
CheckoutJson: String,
Items:
[
{
Id: String,
Name: String,
Flag: String,
Warn: False
}
]
}
]
}