GET | /RestApi/diagnostics/uncached-pages |
---|
import Foundation
import ServiceStack
public class GetUncachedPages : Codable
{
public var countOnly:Bool
public var skip:Int
public var take:Int
public var siteRootNodeId:String
required public init(){}
}
public class UncachedPagesProxy : Codable
{
public var notCachedPages:[PageProxy] = []
public var countAllSites:Int
public var countCurrentSite:Int
required public init(){}
}
public class PageProxy : Codable
{
public var title:String
public var parentPagesTitles:String
public var workflowStatus:String
public var hasDraftNewerThanPublished:Bool
required public init(){}
}
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/diagnostics/uncached-pages HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { NotCachedPages: [ { Title: String, ParentPagesTitles: String, WorkflowStatus: String, HasDraftNewerThanPublished: False } ], CountAllSites: 0, CountCurrentSite: 0 }