<back to all web services

DECSettingsRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/settings
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class DECSettingsRequestDto implements JsonSerializable
{
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        return empty($o) ? new class(){} : $o;
    }
}

class DECSettingsDto implements JsonSerializable
{
    public function __construct(
        /** @var bool|null */
        public ?bool $IsDecEnabled=null,
        /** @var bool|null */
        public ?bool $AccessKeyStrategyUsed=null,
        /** @var string|null */
        public ?string $AuthorizationHeader=null,
        /** @var string|null */
        public ?string $ApiServerUrl=null,
        /** @var string|null */
        public ?string $DecAppUrl=null,
        /** @var string|null */
        public ?string $DataCenterApiKey=null,
        /** @var string|null */
        public ?string $LicenseType=null,
        /** @var string|null */
        public ?string $DecAdminBackendPageUrl=null,
        /** @var array<string>|null */
        public ?array $ContentAnalyticsApiKeys=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['IsDecEnabled'])) $this->IsDecEnabled = $o['IsDecEnabled'];
        if (isset($o['AccessKeyStrategyUsed'])) $this->AccessKeyStrategyUsed = $o['AccessKeyStrategyUsed'];
        if (isset($o['AuthorizationHeader'])) $this->AuthorizationHeader = $o['AuthorizationHeader'];
        if (isset($o['ApiServerUrl'])) $this->ApiServerUrl = $o['ApiServerUrl'];
        if (isset($o['DecAppUrl'])) $this->DecAppUrl = $o['DecAppUrl'];
        if (isset($o['DataCenterApiKey'])) $this->DataCenterApiKey = $o['DataCenterApiKey'];
        if (isset($o['LicenseType'])) $this->LicenseType = $o['LicenseType'];
        if (isset($o['DecAdminBackendPageUrl'])) $this->DecAdminBackendPageUrl = $o['DecAdminBackendPageUrl'];
        if (isset($o['ContentAnalyticsApiKeys'])) $this->ContentAnalyticsApiKeys = JsonConverters::fromArray('string', $o['ContentAnalyticsApiKeys']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->IsDecEnabled)) $o['IsDecEnabled'] = $this->IsDecEnabled;
        if (isset($this->AccessKeyStrategyUsed)) $o['AccessKeyStrategyUsed'] = $this->AccessKeyStrategyUsed;
        if (isset($this->AuthorizationHeader)) $o['AuthorizationHeader'] = $this->AuthorizationHeader;
        if (isset($this->ApiServerUrl)) $o['ApiServerUrl'] = $this->ApiServerUrl;
        if (isset($this->DecAppUrl)) $o['DecAppUrl'] = $this->DecAppUrl;
        if (isset($this->DataCenterApiKey)) $o['DataCenterApiKey'] = $this->DataCenterApiKey;
        if (isset($this->LicenseType)) $o['LicenseType'] = $this->LicenseType;
        if (isset($this->DecAdminBackendPageUrl)) $o['DecAdminBackendPageUrl'] = $this->DecAdminBackendPageUrl;
        if (isset($this->ContentAnalyticsApiKeys)) $o['ContentAnalyticsApiKeys'] = JsonConverters::toArray('string', $this->ContentAnalyticsApiKeys);
        return empty($o) ? new class(){} : $o;
    }
}

PHP DECSettingsRequestDto DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
	]
}