| GET,OPTIONS | /v1/records/logistics/pools |
|---|
import 'package:servicestack/servicestack.dart';
class RecordsPoolDto implements IConvertible
{
int? PoolId;
String? PoolKey;
String? Site;
String? Method;
String? Icon;
String? Note;
String? ItemsJson;
int? Boxes;
int? Pages;
int? WeightLbs;
int? ThBoxes;
int? ThWeight;
String? Status;
RecordsPoolDto({this.PoolId,this.PoolKey,this.Site,this.Method,this.Icon,this.Note,this.ItemsJson,this.Boxes,this.Pages,this.WeightLbs,this.ThBoxes,this.ThWeight,this.Status});
RecordsPoolDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PoolId = json['PoolId'];
PoolKey = json['PoolKey'];
Site = json['Site'];
Method = json['Method'];
Icon = json['Icon'];
Note = json['Note'];
ItemsJson = json['ItemsJson'];
Boxes = json['Boxes'];
Pages = json['Pages'];
WeightLbs = json['WeightLbs'];
ThBoxes = json['ThBoxes'];
ThWeight = json['ThWeight'];
Status = json['Status'];
return this;
}
Map<String, dynamic> toJson() => {
'PoolId': PoolId,
'PoolKey': PoolKey,
'Site': Site,
'Method': Method,
'Icon': Icon,
'Note': Note,
'ItemsJson': ItemsJson,
'Boxes': Boxes,
'Pages': Pages,
'WeightLbs': WeightLbs,
'ThBoxes': ThBoxes,
'ThWeight': ThWeight,
'Status': Status
};
getTypeName() => "RecordsPoolDto";
TypeContext? context = _ctx;
}
class PoolsResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<RecordsPoolDto>? Pools = [];
PoolsResponse({this.ResponseStatus,this.Pools});
PoolsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Pools = JsonConverters.fromJson(json['Pools'],'List<RecordsPoolDto>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Pools': JsonConverters.toJson(Pools,'List<RecordsPoolDto>',context!)
};
getTypeName() => "PoolsResponse";
TypeContext? context = _ctx;
}
class PoolsRequest implements IConvertible
{
PoolsRequest();
PoolsRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "PoolsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'RecordsPoolDto': TypeInfo(TypeOf.Class, create:() => RecordsPoolDto()),
'PoolsResponse': TypeInfo(TypeOf.Class, create:() => PoolsResponse()),
'List<RecordsPoolDto>': TypeInfo(TypeOf.Class, create:() => <RecordsPoolDto>[]),
'PoolsRequest': TypeInfo(TypeOf.Class, create:() => PoolsRequest()),
});
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/logistics/pools HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PoolsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Pools>
<RecordsPoolDto>
<Boxes>0</Boxes>
<Icon>String</Icon>
<ItemsJson>String</ItemsJson>
<Method>String</Method>
<Note>String</Note>
<Pages>0</Pages>
<PoolId>0</PoolId>
<PoolKey>String</PoolKey>
<Site>String</Site>
<Status>String</Status>
<ThBoxes>0</ThBoxes>
<ThWeight>0</ThWeight>
<WeightLbs>0</WeightLbs>
</RecordsPoolDto>
</Pools>
<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>
</PoolsResponse>