<back to all web services

MobileFormatPreviewDto

The following routes are available for this service:
GET/RestApi/Sitefinity/mobile-formats/preview
import Foundation
import ServiceStack

public class MobileFormatPreviewDto : Codable
{
    public var mobileFormatSettingName:String
    public var contentTypeFullname:String
    public var providerName:String
    public var itemUrlName:String
    public var status:ContentLifecycleStatus?
    public var siteId:String

    required public init(){}
}

public enum ContentLifecycleStatus : Int, Codable
{
    case Master = 0
    case Temp = 1
    case Live = 2
    case Deleted = 4
    case PartialTemp = 8
}

public class MobileFormatPreviewUrlDto : Codable
{
    public var itemTitle:String
    public var mobileFormatUrl:String
    public var mobileFormatPreviewUrl:String
    public var errorMessage:String

    required public init(){}
}


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

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