GET | /RestApi/Sitefinity/mobile-formats/preview |
---|
export enum ContentLifecycleStatus
{
Master = 0,
Temp = 1,
Live = 2,
Deleted = 4,
PartialTemp = 8,
}
export class MobileFormatPreviewDto
{
public MobileFormatSettingName: string;
public ContentTypeFullname: string;
public ProviderName: string;
public ItemUrlName: string;
public Status?: ContentLifecycleStatus;
public SiteId: string;
public constructor(init?: Partial<MobileFormatPreviewDto>) { (Object as any).assign(this, init); }
}
export class MobileFormatPreviewUrlDto
{
public ItemTitle: string;
public MobileFormatUrl: string;
public MobileFormatPreviewUrl: string;
public ErrorMessage: string;
public constructor(init?: Partial<MobileFormatPreviewUrlDto>) { (Object as any).assign(this, init); }
}
TypeScript MobileFormatPreviewDto DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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"}