| GET,OPTIONS | /v1/records/imaging/batches |
|---|
import Foundation
import ServiceStack
public class ImagingBatchesRequest : Codable
{
required public init(){}
}
public class ImagingBatchesResponse : Codable
{
public var responseStatus:ResponseStatus
public var batches:[ImagingBatchDto] = []
required public init(){}
}
public class ImagingBatchDto : Codable
{
public var batchId:Int
public var batchKey:String
public var title:String
public var createdByLbl:String
public var createdLabel:String
public var stage:String
public var dpi:String
public var color:String
public var destroyAfter:Bool
public var containersJson:String
public var qaJson:String
public var importReceipt:String
public var logJson:String
required public init(){}
}
Swift ImagingBatchesRequest DTOs
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/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
}
]
}