GET | /RestApi/ab-testing/edit-page-selector |
---|
import Foundation
import ServiceStack
public class GetABTestEditPageSelector : IHasConnectionError, Codable
{
public var pageNodeId:String
public var culture:String
public var hasConnectionConfigurationError:Bool
required public init(){}
}
public class ABTestEditPageSelectorViewModel : Codable
{
public var id:String
public var status:ABTestStatus
public var variations:[ABTestVariationViewModel] = []
public var previewLink:String
public var abTestingApiServerHasConnection:Bool
public var hasConnectionConfigurationError:Bool
public var warningMessage:String
public var apiKeyChanged:Bool
required public init(){}
}
public enum ABTestStatus : String, Codable
{
case NotStarted
case Scheduled
case Active
case Stopped
case Ended
}
public class ABTestVariationViewModel : Codable
{
public var variatonId:String
public var variationName:String
public var variationLink:String
public var isWinner:Bool
public var ordinal:Int
required public init(){}
}
Swift 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
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}