<back to all web services

GetABTestEditPageSelector

The following routes are available for this service:
GET/RestApi/ab-testing/edit-page-selector
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetABTestEditPageSelector(IHasConnectionError):
    page_node_id: Optional[str] = None
    culture: Optional[str] = None
    has_connection_configuration_error: bool = False


class ABTestStatus(str, Enum):
    NOT_STARTED = 'NotStarted'
    SCHEDULED = 'Scheduled'
    ACTIVE = 'Active'
    STOPPED = 'Stopped'
    ENDED = 'Ended'


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ABTestVariationViewModel:
    variaton_id: Optional[str] = None
    variation_name: Optional[str] = None
    variation_link: Optional[str] = None
    is_winner: bool = False
    ordinal: int = 0


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ABTestEditPageSelectorViewModel:
    id: Optional[str] = None
    status: Optional[ABTestStatus] = None
    variations: Optional[List[ABTestVariationViewModel]] = None
    preview_link: Optional[str] = None
    ab_testing_api_server_has_connection: bool = False
    has_connection_configuration_error: bool = False
    warning_message: Optional[str] = None
    api_key_changed: bool = False

Python GetABTestEditPageSelector 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/ab-testing/edit-page-selector HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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