GET | /RestApi/Sitefinity/packaging/archive/status |
---|
import 'package:servicestack/servicestack.dart';
class ExportedArchiveInfo implements IConvertible
{
String? ArchiveName;
ExportedArchiveInfo({this.ArchiveName});
ExportedArchiveInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ArchiveName = json['ArchiveName'];
return this;
}
Map<String, dynamic> toJson() => {
'ArchiveName': ArchiveName
};
getTypeName() => "ExportedArchiveInfo";
TypeContext? context = _ctx;
}
class ArchiveStatus implements IConvertible
{
bool? Deleted;
ArchiveStatus({this.Deleted});
ArchiveStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Deleted = json['Deleted'];
return this;
}
Map<String, dynamic> toJson() => {
'Deleted': Deleted
};
getTypeName() => "ArchiveStatus";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'ExportedArchiveInfo': TypeInfo(TypeOf.Class, create:() => ExportedArchiveInfo()),
'ArchiveStatus': TypeInfo(TypeOf.Class, create:() => ArchiveStatus()),
});
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/Sitefinity/packaging/archive/status HTTP/1.1 Host: www.asg.com.au Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Deleted":false}