GET | /RestApi/diagnostics/uncached-pages |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Telerik.Sitefinity.Diagnostics.Tools.PerformanceTips.Web.Services.Dto.Request;
using Telerik.Sitefinity.Diagnostics.Tools.PerformanceTips.Web.Services.Dto.Response;
namespace Telerik.Sitefinity.Diagnostics.Tools.PerformanceTips.Web.Services.Dto.Request
{
public partial class GetUncachedPages
{
public virtual bool CountOnly { get; set; }
public virtual int Skip { get; set; }
public virtual int Take { get; set; }
public virtual Guid SiteRootNodeId { get; set; }
}
}
namespace Telerik.Sitefinity.Diagnostics.Tools.PerformanceTips.Web.Services.Dto.Response
{
public partial class PageProxy
{
public virtual string Title { get; set; }
public virtual string ParentPagesTitles { get; set; }
public virtual string WorkflowStatus { get; set; }
public virtual bool HasDraftNewerThanPublished { get; set; }
}
public partial class UncachedPagesProxy
{
public UncachedPagesProxy()
{
NotCachedPages = new List<PageProxy>{};
}
public virtual List<PageProxy> NotCachedPages { get; set; }
public virtual int CountAllSites { get; set; }
public virtual int CountCurrentSite { get; set; }
}
}
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/diagnostics/uncached-pages HTTP/1.1 Host: www.asg.com.au Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"NotCachedPages":[{"Title":"String","ParentPagesTitles":"String","WorkflowStatus":"String","HasDraftNewerThanPublished":false}],"CountAllSites":0,"CountCurrentSite":0}