GET | /RestApi/ab-testing/edit-page-selector |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetABTestEditPageSelector : IHasConnectionError
{
var PageNodeId:UUID? = null
var Culture:String? = null
var HasConnectionConfigurationError:Boolean? = null
}
open class ABTestEditPageSelectorViewModel
{
var Id:UUID? = null
var Status:ABTestStatus? = null
var Variations:ArrayList<ABTestVariationViewModel> = ArrayList<ABTestVariationViewModel>()
var PreviewLink:String? = null
var AbTestingApiServerHasConnection:Boolean? = null
var HasConnectionConfigurationError:Boolean? = null
var WarningMessage:String? = null
var ApiKeyChanged:Boolean? = null
}
enum class ABTestStatus
{
NotStarted,
Scheduled,
Active,
Stopped,
Ended,
}
open class ABTestVariationViewModel
{
var VariatonId:UUID? = null
var VariationName:String? = null
var VariationLink:String? = null
var IsWinner:Boolean? = null
var Ordinal:Int? = null
}
Kotlin GetABTestEditPageSelector DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Status":"NotStarted","PreviewLink":"String","AbTestingApiServerHasConnection":false,"HasConnectionConfigurationError":false,"WarningMessage":"String","ApiKeyChanged":false}