| GET,OPTIONS | /v1/records/settings |
|---|
import 'package:servicestack/servicestack.dart';
class WfBindingDto implements IConvertible
{
String? SourceKey;
int? WorkflowId;
String? Name;
bool? Paused;
int? Runs30;
String? Summary;
WfBindingDto({this.SourceKey,this.WorkflowId,this.Name,this.Paused,this.Runs30,this.Summary});
WfBindingDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SourceKey = json['SourceKey'];
WorkflowId = json['WorkflowId'];
Name = json['Name'];
Paused = json['Paused'];
Runs30 = json['Runs30'];
Summary = json['Summary'];
return this;
}
Map<String, dynamic> toJson() => {
'SourceKey': SourceKey,
'WorkflowId': WorkflowId,
'Name': Name,
'Paused': Paused,
'Runs30': Runs30,
'Summary': Summary
};
getTypeName() => "WfBindingDto";
TypeContext? context = _ctx;
}
class RecordsSettingsDto implements IConvertible
{
String? ThresholdsJson;
String? VendorsJson;
String? ArchivalJson;
String? PoliciesJson;
String? VisibilityJson;
List<WfBindingDto>? WfBindings = [];
RecordsSettingsDto({this.ThresholdsJson,this.VendorsJson,this.ArchivalJson,this.PoliciesJson,this.VisibilityJson,this.WfBindings});
RecordsSettingsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ThresholdsJson = json['ThresholdsJson'];
VendorsJson = json['VendorsJson'];
ArchivalJson = json['ArchivalJson'];
PoliciesJson = json['PoliciesJson'];
VisibilityJson = json['VisibilityJson'];
WfBindings = JsonConverters.fromJson(json['WfBindings'],'List<WfBindingDto>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ThresholdsJson': ThresholdsJson,
'VendorsJson': VendorsJson,
'ArchivalJson': ArchivalJson,
'PoliciesJson': PoliciesJson,
'VisibilityJson': VisibilityJson,
'WfBindings': JsonConverters.toJson(WfBindings,'List<WfBindingDto>',context!)
};
getTypeName() => "RecordsSettingsDto";
TypeContext? context = _ctx;
}
class RecordsSettingsResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
RecordsSettingsDto? Settings;
RecordsSettingsResponse({this.ResponseStatus,this.Settings});
RecordsSettingsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Settings = JsonConverters.fromJson(json['Settings'],'RecordsSettingsDto',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Settings': JsonConverters.toJson(Settings,'RecordsSettingsDto',context!)
};
getTypeName() => "RecordsSettingsResponse";
TypeContext? context = _ctx;
}
class RecordsSettingsRequest implements IConvertible
{
RecordsSettingsRequest();
RecordsSettingsRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "RecordsSettingsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'WfBindingDto': TypeInfo(TypeOf.Class, create:() => WfBindingDto()),
'RecordsSettingsDto': TypeInfo(TypeOf.Class, create:() => RecordsSettingsDto()),
'List<WfBindingDto>': TypeInfo(TypeOf.Class, create:() => <WfBindingDto>[]),
'RecordsSettingsResponse': TypeInfo(TypeOf.Class, create:() => RecordsSettingsResponse()),
'RecordsSettingsRequest': TypeInfo(TypeOf.Class, create:() => RecordsSettingsRequest()),
});
Dart RecordsSettingsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/records/settings HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Settings":{"ThresholdsJson":"String","VendorsJson":"String","ArchivalJson":"String","PoliciesJson":"String","VisibilityJson":"String","WfBindings":[{"SourceKey":"String","WorkflowId":0,"Name":"String","Paused":false,"Runs30":0,"Summary":"String"}]}}