<back to all web services

MobileFormatPreviewDto

The following routes are available for this service:
GET/RestApi/Sitefinity/mobile-formats/preview
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Telerik.Sitefinity.MobileFormats.Web.Services.Dto;
using Telerik.Sitefinity.GenericContent.Model;

namespace Telerik.Sitefinity.GenericContent.Model
{
    public enum ContentLifecycleStatus
    {
        Master = 0,
        Temp = 1,
        Live = 2,
        Deleted = 4,
        PartialTemp = 8,
    }

}

namespace Telerik.Sitefinity.MobileFormats.Web.Services.Dto
{
    public partial class MobileFormatPreviewDto
    {
        public virtual string MobileFormatSettingName { get; set; }
        public virtual string ContentTypeFullname { get; set; }
        public virtual string ProviderName { get; set; }
        public virtual string ItemUrlName { get; set; }
        public virtual ContentLifecycleStatus? Status { get; set; }
        public virtual string SiteId { get; set; }
    }

    public partial class MobileFormatPreviewUrlDto
    {
        public virtual string ItemTitle { get; set; }
        public virtual string MobileFormatUrl { get; set; }
        public virtual string MobileFormatPreviewUrl { get; set; }
        public virtual string ErrorMessage { get; set; }
    }

}

C# MobileFormatPreviewDto 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/Sitefinity/mobile-formats/preview HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ItemTitle":"String","MobileFormatUrl":"String","MobileFormatPreviewUrl":"String","ErrorMessage":"String"}