GET | /RestApi/diagnostics/cache-statuses |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetCacheStatuses
{
}
public static class CacheStatusesProxy
{
public Boolean OutputCache = null;
public Boolean ClientCache = null;
public Boolean L2Cache = null;
public Boolean ClientSideCacheForThemes = null;
public Boolean RssCache = null;
public Boolean PagesPermissionsCache = null;
public Boolean isOutputCache() { return OutputCache; }
public CacheStatusesProxy setOutputCache(Boolean value) { this.OutputCache = value; return this; }
public Boolean isClientCache() { return ClientCache; }
public CacheStatusesProxy setClientCache(Boolean value) { this.ClientCache = value; return this; }
public Boolean isL2Cache() { return L2Cache; }
public CacheStatusesProxy setL2Cache(Boolean value) { this.L2Cache = value; return this; }
public Boolean isClientSideCacheForThemes() { return ClientSideCacheForThemes; }
public CacheStatusesProxy setClientSideCacheForThemes(Boolean value) { this.ClientSideCacheForThemes = value; return this; }
public Boolean isRssCache() { return RssCache; }
public CacheStatusesProxy setRssCache(Boolean value) { this.RssCache = value; return this; }
public Boolean isPagesPermissionsCache() { return PagesPermissionsCache; }
public CacheStatusesProxy setPagesPermissionsCache(Boolean value) { this.PagesPermissionsCache = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"OutputCache":false,"ClientCache":false,"L2Cache":false,"ClientSideCacheForThemes":false,"RssCache":false,"PagesPermissionsCache":false}