GET | /RestApi/sitefinity/data-intelligence/settings |
---|
import 'package:servicestack/servicestack.dart';
class DECSettingsRequestDto implements IConvertible
{
DECSettingsRequestDto();
DECSettingsRequestDto.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "DECSettingsRequestDto";
TypeContext? context = _ctx;
}
class DECSettingsDto implements IConvertible
{
bool? IsDecEnabled;
bool? AccessKeyStrategyUsed;
String? AuthorizationHeader;
String? ApiServerUrl;
String? DecAppUrl;
String? DataCenterApiKey;
String? LicenseType;
String? DecAdminBackendPageUrl;
List<String>? ContentAnalyticsApiKeys;
DECSettingsDto({this.IsDecEnabled,this.AccessKeyStrategyUsed,this.AuthorizationHeader,this.ApiServerUrl,this.DecAppUrl,this.DataCenterApiKey,this.LicenseType,this.DecAdminBackendPageUrl,this.ContentAnalyticsApiKeys});
DECSettingsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IsDecEnabled = json['IsDecEnabled'];
AccessKeyStrategyUsed = json['AccessKeyStrategyUsed'];
AuthorizationHeader = json['AuthorizationHeader'];
ApiServerUrl = json['ApiServerUrl'];
DecAppUrl = json['DecAppUrl'];
DataCenterApiKey = json['DataCenterApiKey'];
LicenseType = json['LicenseType'];
DecAdminBackendPageUrl = json['DecAdminBackendPageUrl'];
ContentAnalyticsApiKeys = JsonConverters.fromJson(json['ContentAnalyticsApiKeys'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'IsDecEnabled': IsDecEnabled,
'AccessKeyStrategyUsed': AccessKeyStrategyUsed,
'AuthorizationHeader': AuthorizationHeader,
'ApiServerUrl': ApiServerUrl,
'DecAppUrl': DecAppUrl,
'DataCenterApiKey': DataCenterApiKey,
'LicenseType': LicenseType,
'DecAdminBackendPageUrl': DecAdminBackendPageUrl,
'ContentAnalyticsApiKeys': JsonConverters.toJson(ContentAnalyticsApiKeys,'List<String>',context!)
};
getTypeName() => "DECSettingsDto";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'DECSettingsRequestDto': TypeInfo(TypeOf.Class, create:() => DECSettingsRequestDto()),
'DECSettingsDto': TypeInfo(TypeOf.Class, create:() => DECSettingsDto()),
});
Dart DECSettingsRequestDto 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.
GET /RestApi/sitefinity/data-intelligence/settings HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { IsDecEnabled: False, AccessKeyStrategyUsed: False, AuthorizationHeader: String, ApiServerUrl: String, DecAppUrl: String, DataCenterApiKey: String, LicenseType: String, DecAdminBackendPageUrl: String, ContentAnalyticsApiKeys: [ String ] }