Trendsic Platform Service

<back to all web services

ContainersRequest

Requires Authentication
The following routes are available for this service:
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; }
    }

}

Java ContainersRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
				}
			]
		}
	]
}