<back to all web services

GetCacheStatuses

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

class GetCacheStatuses implements IConvertible
{
    GetCacheStatuses();
    GetCacheStatuses.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetCacheStatuses";
    TypeContext? context = _ctx;
}

class CacheStatusesProxy implements IConvertible
{
    bool? OutputCache;
    bool? ClientCache;
    bool? L2Cache;
    bool? ClientSideCacheForThemes;
    bool? RssCache;
    bool? PagesPermissionsCache;

    CacheStatusesProxy({this.OutputCache,this.ClientCache,this.L2Cache,this.ClientSideCacheForThemes,this.RssCache,this.PagesPermissionsCache});
    CacheStatusesProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        OutputCache = json['OutputCache'];
        ClientCache = json['ClientCache'];
        L2Cache = json['L2Cache'];
        ClientSideCacheForThemes = json['ClientSideCacheForThemes'];
        RssCache = json['RssCache'];
        PagesPermissionsCache = json['PagesPermissionsCache'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'OutputCache': OutputCache,
        'ClientCache': ClientCache,
        'L2Cache': L2Cache,
        'ClientSideCacheForThemes': ClientSideCacheForThemes,
        'RssCache': RssCache,
        'PagesPermissionsCache': PagesPermissionsCache
    };

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

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'GetCacheStatuses': TypeInfo(TypeOf.Class, create:() => GetCacheStatuses()),
    'CacheStatusesProxy': TypeInfo(TypeOf.Class, create:() => CacheStatusesProxy()),
});

Dart GetCacheStatuses DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/diagnostics/cache-statuses HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"OutputCache":false,"ClientCache":false,"L2Cache":false,"ClientSideCacheForThemes":false,"RssCache":false,"PagesPermissionsCache":false}