| GET,OPTIONS | /v1/records/warehouse/containers |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ContainersRequest
{
}
public static class ContainersResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<RecordContainerDto> Containers = new ArrayList<RecordContainerDto>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ContainersResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<RecordContainerDto> getContainers() { return Containers; }
public ContainersResponse setContainers(ArrayList<RecordContainerDto> value) { this.Containers = value; return this; }
}
public static class RecordContainerDto
{
public Integer ContainerId = null;
public String Barcode = null;
public String Kind = null;
public String Icon = null;
public String Name = null;
public String ZoneKey = null;
public String Slot = null;
public String Status = null;
public String CheckoutJson = null;
public ArrayList<ContainerItemDto> Items = new ArrayList<ContainerItemDto>();
public Integer getContainerId() { return ContainerId; }
public RecordContainerDto setContainerId(Integer value) { this.ContainerId = value; return this; }
public String getBarcode() { return Barcode; }
public RecordContainerDto setBarcode(String value) { this.Barcode = value; return this; }
public String getKind() { return Kind; }
public RecordContainerDto setKind(String value) { this.Kind = value; return this; }
public String getIcon() { return Icon; }
public RecordContainerDto setIcon(String value) { this.Icon = value; return this; }
public String getName() { return Name; }
public RecordContainerDto setName(String value) { this.Name = value; return this; }
public String getZoneKey() { return ZoneKey; }
public RecordContainerDto setZoneKey(String value) { this.ZoneKey = value; return this; }
public String getSlot() { return Slot; }
public RecordContainerDto setSlot(String value) { this.Slot = value; return this; }
public String getStatus() { return Status; }
public RecordContainerDto setStatus(String value) { this.Status = value; return this; }
public String getCheckoutJson() { return CheckoutJson; }
public RecordContainerDto setCheckoutJson(String value) { this.CheckoutJson = value; return this; }
public ArrayList<ContainerItemDto> getItems() { return Items; }
public RecordContainerDto setItems(ArrayList<ContainerItemDto> value) { this.Items = value; return this; }
}
public static class ContainerItemDto
{
public String Id = null;
public String Name = null;
public String Flag = null;
public Boolean Warn = null;
public String getId() { return Id; }
public ContainerItemDto setId(String value) { this.Id = value; return this; }
public String getName() { return Name; }
public ContainerItemDto setName(String value) { this.Name = value; return this; }
public String getFlag() { return Flag; }
public ContainerItemDto setFlag(String value) { this.Flag = value; return this; }
public Boolean isWarn() { return Warn; }
public ContainerItemDto setWarn(Boolean value) { this.Warn = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ContainersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Containers>
<RecordContainerDto>
<Barcode>String</Barcode>
<CheckoutJson>String</CheckoutJson>
<ContainerId>0</ContainerId>
<Icon>String</Icon>
<Items>
<ContainerItemDto>
<Flag>String</Flag>
<Id>String</Id>
<Name>String</Name>
<Warn>false</Warn>
</ContainerItemDto>
</Items>
<Kind>String</Kind>
<Name>String</Name>
<Slot>String</Slot>
<Status>String</Status>
<ZoneKey>String</ZoneKey>
</RecordContainerDto>
</Containers>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</ContainersResponse>