Trendsic Platform Service

<back to all web services

ImagingBatchesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/records/imaging/batches
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ImagingBatchesRequest
    {
        
    }

    public static class ImagingBatchesResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<ImagingBatchDto> Batches = new ArrayList<ImagingBatchDto>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ImagingBatchesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<ImagingBatchDto> getBatches() { return Batches; }
        public ImagingBatchesResponse setBatches(ArrayList<ImagingBatchDto> value) { this.Batches = value; return this; }
    }

    public static class ImagingBatchDto
    {
        public Integer BatchId = null;
        public String BatchKey = null;
        public String Title = null;
        public String CreatedByLbl = null;
        public String CreatedLabel = null;
        public String Stage = null;
        public String Dpi = null;
        public String Color = null;
        public Boolean DestroyAfter = null;
        public String ContainersJson = null;
        public String QaJson = null;
        public String ImportReceipt = null;
        public String LogJson = null;
        
        public Integer getBatchId() { return BatchId; }
        public ImagingBatchDto setBatchId(Integer value) { this.BatchId = value; return this; }
        public String getBatchKey() { return BatchKey; }
        public ImagingBatchDto setBatchKey(String value) { this.BatchKey = value; return this; }
        public String getTitle() { return Title; }
        public ImagingBatchDto setTitle(String value) { this.Title = value; return this; }
        public String getCreatedByLbl() { return CreatedByLbl; }
        public ImagingBatchDto setCreatedByLbl(String value) { this.CreatedByLbl = value; return this; }
        public String getCreatedLabel() { return CreatedLabel; }
        public ImagingBatchDto setCreatedLabel(String value) { this.CreatedLabel = value; return this; }
        public String getStage() { return Stage; }
        public ImagingBatchDto setStage(String value) { this.Stage = value; return this; }
        public String getDpi() { return Dpi; }
        public ImagingBatchDto setDpi(String value) { this.Dpi = value; return this; }
        public String getColor() { return Color; }
        public ImagingBatchDto setColor(String value) { this.Color = value; return this; }
        public Boolean isDestroyAfter() { return DestroyAfter; }
        public ImagingBatchDto setDestroyAfter(Boolean value) { this.DestroyAfter = value; return this; }
        public String getContainersJson() { return ContainersJson; }
        public ImagingBatchDto setContainersJson(String value) { this.ContainersJson = value; return this; }
        public String getQaJson() { return QaJson; }
        public ImagingBatchDto setQaJson(String value) { this.QaJson = value; return this; }
        public String getImportReceipt() { return ImportReceipt; }
        public ImagingBatchDto setImportReceipt(String value) { this.ImportReceipt = value; return this; }
        public String getLogJson() { return LogJson; }
        public ImagingBatchDto setLogJson(String value) { this.LogJson = value; return this; }
    }

}

Java ImagingBatchesRequest 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/imaging/batches 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
		}
	},
	Batches: 
	[
		{
			BatchId: 0,
			BatchKey: String,
			Title: String,
			CreatedByLbl: String,
			CreatedLabel: String,
			Stage: String,
			Dpi: String,
			Color: String,
			DestroyAfter: False,
			ContainersJson: String,
			QaJson: String,
			ImportReceipt: String,
			LogJson: String
		}
	]
}