POST | /RestApi/sitefinity/data-intelligence/enable-content-analysis |
---|
import 'package:servicestack/servicestack.dart';
class DECEnableContentAnalysisDto implements IConvertible
{
int? Progress;
String? DataCenterApiKey;
List<String>? SiteNames;
String? StatusMessage;
DECEnableContentAnalysisDto({this.Progress,this.DataCenterApiKey,this.SiteNames,this.StatusMessage});
DECEnableContentAnalysisDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Progress = json['Progress'];
DataCenterApiKey = json['DataCenterApiKey'];
SiteNames = JsonConverters.fromJson(json['SiteNames'],'List<String>',context!);
StatusMessage = json['StatusMessage'];
return this;
}
Map<String, dynamic> toJson() => {
'Progress': Progress,
'DataCenterApiKey': DataCenterApiKey,
'SiteNames': JsonConverters.toJson(SiteNames,'List<String>',context!),
'StatusMessage': StatusMessage
};
getTypeName() => "DECEnableContentAnalysisDto";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'DECEnableContentAnalysisDto': TypeInfo(TypeOf.Class, create:() => DECEnableContentAnalysisDto()),
});
Dart DECEnableContentAnalysisDto DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/sitefinity/data-intelligence/enable-content-analysis HTTP/1.1
Host: www.asg.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Progress: 0,
DataCenterApiKey: String,
SiteNames:
[
String
],
StatusMessage: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Progress: 0, DataCenterApiKey: String, SiteNames: [ String ], StatusMessage: String }