GET | /RestApi/diagnostics/methods/children/{operationId} |
---|
import 'package:servicestack/servicestack.dart';
class GetChildMethods implements IConvertible
{
String? OperationId;
String? RootOperationId;
GetChildMethods({this.OperationId,this.RootOperationId});
GetChildMethods.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
OperationId = json['OperationId'];
RootOperationId = json['RootOperationId'];
return this;
}
Map<String, dynamic> toJson() => {
'OperationId': OperationId,
'RootOperationId': RootOperationId
};
getTypeName() => "GetChildMethods";
TypeContext? context = _ctx;
}
class MethodViewModel implements IConvertible
{
String? Id;
String? RootOperationId;
String? ParentOperationId;
String? Method;
DateTime? Start;
DateTime? End;
double? Duration;
int? QueryCount;
bool? HasChildren;
MethodViewModel({this.Id,this.RootOperationId,this.ParentOperationId,this.Method,this.Start,this.End,this.Duration,this.QueryCount,this.HasChildren});
MethodViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
RootOperationId = json['RootOperationId'];
ParentOperationId = json['ParentOperationId'];
Method = json['Method'];
Start = JsonConverters.fromJson(json['Start'],'DateTime',context!);
End = JsonConverters.fromJson(json['End'],'DateTime',context!);
Duration = JsonConverters.toDouble(json['Duration']);
QueryCount = json['QueryCount'];
HasChildren = json['HasChildren'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'RootOperationId': RootOperationId,
'ParentOperationId': ParentOperationId,
'Method': Method,
'Start': JsonConverters.toJson(Start,'DateTime',context!),
'End': JsonConverters.toJson(End,'DateTime',context!),
'Duration': Duration,
'QueryCount': QueryCount,
'HasChildren': HasChildren
};
getTypeName() => "MethodViewModel";
TypeContext? context = _ctx;
}
class MethodsProxy implements IConvertible
{
List<MethodViewModel>? Items;
MethodsProxy({this.Items});
MethodsProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Items = JsonConverters.fromJson(json['Items'],'List<MethodViewModel>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Items': JsonConverters.toJson(Items,'List<MethodViewModel>',context!)
};
getTypeName() => "MethodsProxy";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'GetChildMethods': TypeInfo(TypeOf.Class, create:() => GetChildMethods()),
'MethodViewModel': TypeInfo(TypeOf.Class, create:() => MethodViewModel()),
'MethodsProxy': TypeInfo(TypeOf.Class, create:() => MethodsProxy()),
'List<MethodViewModel>': TypeInfo(TypeOf.Class, create:() => <MethodViewModel>[]),
});
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 /RestApi/diagnostics/methods/children/{operationId} HTTP/1.1 Host: www.asg.com.au Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {}