GET | /RestApi/ab-testing/edit-page-selector |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Telerik.Sitefinity.ABTesting.Services.Dto.Request;
using Telerik.Sitefinity.ABTesting.Services.Dto.Response;
using Telerik.Sitefinity.ABTesting.Model;
namespace Telerik.Sitefinity.ABTesting.Model
{
public enum ABTestStatus
{
NotStarted,
Scheduled,
Active,
Stopped,
Ended,
}
}
namespace Telerik.Sitefinity.ABTesting.Services.Dto.Request
{
public partial class GetABTestEditPageSelector
: IHasConnectionError
{
public virtual Guid PageNodeId { get; set; }
public virtual string Culture { get; set; }
public virtual bool HasConnectionConfigurationError { get; set; }
}
}
namespace Telerik.Sitefinity.ABTesting.Services.Dto.Response
{
public partial class ABTestEditPageSelectorViewModel
{
public virtual Guid Id { get; set; }
public virtual ABTestStatus Status { get; set; }
public virtual ICollection<ABTestVariationViewModel> Variations { get; set; }
public virtual string PreviewLink { get; set; }
public virtual bool AbTestingApiServerHasConnection { get; set; }
public virtual bool HasConnectionConfigurationError { get; set; }
public virtual string WarningMessage { get; set; }
public virtual bool ApiKeyChanged { get; set; }
}
public partial class ABTestVariationViewModel
{
public virtual Guid VariatonId { get; set; }
public virtual string VariationName { get; set; }
public virtual string VariationLink { get; set; }
public virtual bool IsWinner { get; set; }
public virtual int Ordinal { get; set; }
}
}
C# 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}