<back to all web services

GetABTestEditPageSelector

The following routes are available for this service:
GET/RestApi/ab-testing/edit-page-selector
"use strict";
export class GetABTestEditPageSelector {
    /** @param {{PageNodeId?:string,Culture?:string,HasConnectionConfigurationError?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    PageNodeId;
    /** @type {string} */
    Culture;
    /** @type {boolean} */
    HasConnectionConfigurationError;
}
/** @typedef {'NotStarted'|'Scheduled'|'Active'|'Stopped'|'Ended'} */
export var ABTestStatus;
(function (ABTestStatus) {
    ABTestStatus["NotStarted"] = "NotStarted"
    ABTestStatus["Scheduled"] = "Scheduled"
    ABTestStatus["Active"] = "Active"
    ABTestStatus["Stopped"] = "Stopped"
    ABTestStatus["Ended"] = "Ended"
})(ABTestStatus || (ABTestStatus = {}));
export class ABTestVariationViewModel {
    /** @param {{VariatonId?:string,VariationName?:string,VariationLink?:string,IsWinner?:boolean,Ordinal?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    VariatonId;
    /** @type {string} */
    VariationName;
    /** @type {string} */
    VariationLink;
    /** @type {boolean} */
    IsWinner;
    /** @type {number} */
    Ordinal;
}
export class ABTestEditPageSelectorViewModel {
    /** @param {{Id?:string,Status?:ABTestStatus,Variations?:ABTestVariationViewModel[],PreviewLink?:string,AbTestingApiServerHasConnection?:boolean,HasConnectionConfigurationError?:boolean,WarningMessage?:string,ApiKeyChanged?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {ABTestStatus} */
    Status;
    /** @type {ABTestVariationViewModel[]} */
    Variations;
    /** @type {string} */
    PreviewLink;
    /** @type {boolean} */
    AbTestingApiServerHasConnection;
    /** @type {boolean} */
    HasConnectionConfigurationError;
    /** @type {string} */
    WarningMessage;
    /** @type {boolean} */
    ApiKeyChanged;
}

JavaScript GetABTestEditPageSelector DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/ab-testing/edit-page-selector HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Status":"NotStarted","PreviewLink":"String","AbTestingApiServerHasConnection":false,"HasConnectionConfigurationError":false,"WarningMessage":"String","ApiKeyChanged":false}