<back to all web services

GetABTestVariations

The following routes are available for this service:
GET/RestApi/ab-testing/{id}/variations
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetABTestVariations
    {
        public UUID Id = null;
        
        public UUID getId() { return Id; }
        public GetABTestVariations setId(UUID value) { this.Id = value; return this; }
    }

    public static class ABTestVariationsViewModel
    {
        public UUID Id = null;
        public String PreviewLink = null;
        public Boolean IsPageSynced = null;
        public ArrayList<ABTestVariationViewModel> Variations = null;
        
        public UUID getId() { return Id; }
        public ABTestVariationsViewModel setId(UUID value) { this.Id = value; return this; }
        public String getPreviewLink() { return PreviewLink; }
        public ABTestVariationsViewModel setPreviewLink(String value) { this.PreviewLink = value; return this; }
        public Boolean getIsPageSynced() { return IsPageSynced; }
        public ABTestVariationsViewModel setIsPageSynced(Boolean value) { this.IsPageSynced = value; return this; }
        public ArrayList<ABTestVariationViewModel> getVariations() { return Variations; }
        public ABTestVariationsViewModel setVariations(ArrayList<ABTestVariationViewModel> value) { this.Variations = value; return this; }
    }

    public static class ABTestVariationViewModel
    {
        public UUID VariatonId = null;
        public String VariationName = null;
        public String VariationLink = null;
        public Boolean IsWinner = null;
        public Integer Ordinal = null;
        
        public UUID getVariatonId() { return VariatonId; }
        public ABTestVariationViewModel setVariatonId(UUID value) { this.VariatonId = value; return this; }
        public String getVariationName() { return VariationName; }
        public ABTestVariationViewModel setVariationName(String value) { this.VariationName = value; return this; }
        public String getVariationLink() { return VariationLink; }
        public ABTestVariationViewModel setVariationLink(String value) { this.VariationLink = value; return this; }
        public Boolean getIsWinner() { return IsWinner; }
        public ABTestVariationViewModel setIsWinner(Boolean value) { this.IsWinner = value; return this; }
        public Integer getOrdinal() { return Ordinal; }
        public ABTestVariationViewModel setOrdinal(Integer value) { this.Ordinal = value; return this; }
    }

}

Java GetABTestVariations DTOs

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

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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