GET | /RestApi/Sitefinity/mobile-formats/preview |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.MobileFormats.Web.Services.Dto
Imports Telerik.Sitefinity.GenericContent.Model
Namespace Global
Namespace Telerik.Sitefinity.GenericContent.Model
Public Enum ContentLifecycleStatus
Master = 0
Temp = 1
Live = 2
Deleted = 4
PartialTemp = 8
End Enum
End Namespace
Namespace Telerik.Sitefinity.MobileFormats.Web.Services.Dto
Public Partial Class MobileFormatPreviewDto
Public Overridable Property MobileFormatSettingName As String
Public Overridable Property ContentTypeFullname As String
Public Overridable Property ProviderName As String
Public Overridable Property ItemUrlName As String
Public Overridable Property Status As Nullable(Of ContentLifecycleStatus)
Public Overridable Property SiteId As String
End Class
Public Partial Class MobileFormatPreviewUrlDto
Public Overridable Property ItemTitle As String
Public Overridable Property MobileFormatUrl As String
Public Overridable Property MobileFormatPreviewUrl As String
Public Overridable Property ErrorMessage As String
End Class
End Namespace
End Namespace
VB.NET MobileFormatPreviewDto DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ItemTitle: String, MobileFormatUrl: String, MobileFormatPreviewUrl: String, ErrorMessage: String }