| GET,OPTIONS | /v1/engine/errors |
|---|
import 'package:servicestack/servicestack.dart';
class WorkflowErrorGroupView implements IConvertible
{
int? ErrorGroupId;
int? WorkflowId;
String? WorkflowName;
String? NodeId;
String? Kind;
String? Message;
String? FixText;
int? Count;
DateTime? FirstSeen;
DateTime? LastSeen;
String? Status;
List<String>? Records = [];
WorkflowErrorGroupView({this.ErrorGroupId,this.WorkflowId,this.WorkflowName,this.NodeId,this.Kind,this.Message,this.FixText,this.Count,this.FirstSeen,this.LastSeen,this.Status,this.Records});
WorkflowErrorGroupView.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ErrorGroupId = json['ErrorGroupId'];
WorkflowId = json['WorkflowId'];
WorkflowName = json['WorkflowName'];
NodeId = json['NodeId'];
Kind = json['Kind'];
Message = json['Message'];
FixText = json['FixText'];
Count = json['Count'];
FirstSeen = JsonConverters.fromJson(json['FirstSeen'],'DateTime',context!);
LastSeen = JsonConverters.fromJson(json['LastSeen'],'DateTime',context!);
Status = json['Status'];
Records = JsonConverters.fromJson(json['Records'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ErrorGroupId': ErrorGroupId,
'WorkflowId': WorkflowId,
'WorkflowName': WorkflowName,
'NodeId': NodeId,
'Kind': Kind,
'Message': Message,
'FixText': FixText,
'Count': Count,
'FirstSeen': JsonConverters.toJson(FirstSeen,'DateTime',context!),
'LastSeen': JsonConverters.toJson(LastSeen,'DateTime',context!),
'Status': Status,
'Records': JsonConverters.toJson(Records,'List<String>',context!)
};
getTypeName() => "WorkflowErrorGroupView";
TypeContext? context = _ctx;
}
class EngineErrorsResponse implements IConvertible
{
List<WorkflowErrorGroupView>? Errors = [];
ResponseStatus? ResponseStatus;
EngineErrorsResponse({this.Errors,this.ResponseStatus});
EngineErrorsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Errors = JsonConverters.fromJson(json['Errors'],'List<WorkflowErrorGroupView>',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Errors': JsonConverters.toJson(Errors,'List<WorkflowErrorGroupView>',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "EngineErrorsResponse";
TypeContext? context = _ctx;
}
class EngineErrorsRequest implements IConvertible
{
EngineErrorsRequest();
EngineErrorsRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "EngineErrorsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'WorkflowErrorGroupView': TypeInfo(TypeOf.Class, create:() => WorkflowErrorGroupView()),
'EngineErrorsResponse': TypeInfo(TypeOf.Class, create:() => EngineErrorsResponse()),
'List<WorkflowErrorGroupView>': TypeInfo(TypeOf.Class, create:() => <WorkflowErrorGroupView>[]),
'EngineErrorsRequest': TypeInfo(TypeOf.Class, create:() => EngineErrorsRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/engine/errors HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Errors":[{"ErrorGroupId":0,"WorkflowId":0,"WorkflowName":"String","NodeId":"String","Kind":"String","Message":"String","FixText":"String","Count":0,"FirstSeen":"0001-01-01T00:00:00.0000000","LastSeen":"0001-01-01T00:00:00.0000000","Status":"String","Records":["String"]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}