GET | /RestApi/sitefinity/related-data/child-items |
---|
import 'package:servicestack/servicestack.dart';
enum ContentLifecycleStatus
{
Master,
Temp,
Live,
Deleted,
PartialTemp,
}
class ParentItemMessage implements IConvertible
{
String? ParentItemId;
String? ParentItemType;
String? ParentProviderName;
String? FieldName;
ContentLifecycleStatus? Status;
String? Filter;
String? Order;
int? Skip;
int? Take;
String? ChildItemType;
String? ChildProviderName;
ParentItemMessage({this.ParentItemId,this.ParentItemType,this.ParentProviderName,this.FieldName,this.Status,this.Filter,this.Order,this.Skip,this.Take,this.ChildItemType,this.ChildProviderName});
ParentItemMessage.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ParentItemId = json['ParentItemId'];
ParentItemType = json['ParentItemType'];
ParentProviderName = json['ParentProviderName'];
FieldName = json['FieldName'];
Status = JsonConverters.fromJson(json['Status'],'ContentLifecycleStatus',context!);
Filter = json['Filter'];
Order = json['Order'];
Skip = json['Skip'];
Take = json['Take'];
ChildItemType = json['ChildItemType'];
ChildProviderName = json['ChildProviderName'];
return this;
}
Map<String, dynamic> toJson() => {
'ParentItemId': ParentItemId,
'ParentItemType': ParentItemType,
'ParentProviderName': ParentProviderName,
'FieldName': FieldName,
'Status': JsonConverters.toJson(Status,'ContentLifecycleStatus',context!),
'Filter': Filter,
'Order': Order,
'Skip': Skip,
'Take': Take,
'ChildItemType': ChildItemType,
'ChildProviderName': ChildProviderName
};
getTypeName() => "ParentItemMessage";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'ContentLifecycleStatus': TypeInfo(TypeOf.Enum, enumValues:ContentLifecycleStatus.values),
'ParentItemMessage': TypeInfo(TypeOf.Class, create:() => ParentItemMessage()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/sitefinity/related-data/child-items HTTP/1.1 Host: www.asg.com.au Accept: text/csv