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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ImagingBatchesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Batches>
    <ImagingBatchDto>
      <BatchId>0</BatchId>
      <BatchKey>String</BatchKey>
      <Color>String</Color>
      <ContainersJson>String</ContainersJson>
      <CreatedByLbl>String</CreatedByLbl>
      <CreatedLabel>String</CreatedLabel>
      <DestroyAfter>false</DestroyAfter>
      <Dpi>String</Dpi>
      <ImportReceipt>String</ImportReceipt>
      <LogJson>String</LogJson>
      <QaJson>String</QaJson>
      <Stage>String</Stage>
      <Title>String</Title>
    </ImagingBatchDto>
  </Batches>
  <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>
</ImagingBatchesResponse>