<back to all web services

GetABTestVariations

The following routes are available for this service:
GET/RestApi/ab-testing/{id}/variations
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;

namespace Telerik.Sitefinity.ABTesting.Services.Dto.Request
{
    public partial class GetABTestVariations
    {
        public virtual Guid Id { get; set; }
    }

}

namespace Telerik.Sitefinity.ABTesting.Services.Dto.Response
{
    public partial class ABTestVariationsViewModel
    {
        public virtual Guid Id { get; set; }
        public virtual string PreviewLink { get; set; }
        public virtual bool IsPageSynced { get; set; }
        public virtual ICollection<ABTestVariationViewModel> Variations { 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# GetABTestVariations DTOs

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

HTTP + CSV

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

GET /RestApi/ab-testing/{id}/variations HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"PreviewLink":"String","IsPageSynced":false}