<back to all web services

GetUncachedPages

The following routes are available for this service:
GET/RestApi/diagnostics/uncached-pages
import 'package:servicestack/servicestack.dart';

class GetUncachedPages implements IConvertible
{
    bool? CountOnly;
    int? Skip;
    int? Take;
    String? SiteRootNodeId;

    GetUncachedPages({this.CountOnly,this.Skip,this.Take,this.SiteRootNodeId});
    GetUncachedPages.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CountOnly = json['CountOnly'];
        Skip = json['Skip'];
        Take = json['Take'];
        SiteRootNodeId = json['SiteRootNodeId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CountOnly': CountOnly,
        'Skip': Skip,
        'Take': Take,
        'SiteRootNodeId': SiteRootNodeId
    };

    getTypeName() => "GetUncachedPages";
    TypeContext? context = _ctx;
}

class PageProxy implements IConvertible
{
    String? Title;
    String? ParentPagesTitles;
    String? WorkflowStatus;
    bool? HasDraftNewerThanPublished;

    PageProxy({this.Title,this.ParentPagesTitles,this.WorkflowStatus,this.HasDraftNewerThanPublished});
    PageProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Title = json['Title'];
        ParentPagesTitles = json['ParentPagesTitles'];
        WorkflowStatus = json['WorkflowStatus'];
        HasDraftNewerThanPublished = json['HasDraftNewerThanPublished'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Title': Title,
        'ParentPagesTitles': ParentPagesTitles,
        'WorkflowStatus': WorkflowStatus,
        'HasDraftNewerThanPublished': HasDraftNewerThanPublished
    };

    getTypeName() => "PageProxy";
    TypeContext? context = _ctx;
}

class UncachedPagesProxy implements IConvertible
{
    List<PageProxy>? NotCachedPages;
    int? CountAllSites;
    int? CountCurrentSite;

    UncachedPagesProxy({this.NotCachedPages,this.CountAllSites,this.CountCurrentSite});
    UncachedPagesProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        NotCachedPages = JsonConverters.fromJson(json['NotCachedPages'],'List<PageProxy>',context!);
        CountAllSites = json['CountAllSites'];
        CountCurrentSite = json['CountCurrentSite'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'NotCachedPages': JsonConverters.toJson(NotCachedPages,'List<PageProxy>',context!),
        'CountAllSites': CountAllSites,
        'CountCurrentSite': CountCurrentSite
    };

    getTypeName() => "UncachedPagesProxy";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'GetUncachedPages': TypeInfo(TypeOf.Class, create:() => GetUncachedPages()),
    'PageProxy': TypeInfo(TypeOf.Class, create:() => PageProxy()),
    'UncachedPagesProxy': TypeInfo(TypeOf.Class, create:() => UncachedPagesProxy()),
    'List<PageProxy>': TypeInfo(TypeOf.Class, create:() => <PageProxy>[]),
});

Dart GetUncachedPages DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
}