GET | /RestApi/diagnostics/uncached-libraries |
---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetUncachedLibraries:
count_only: bool = False
skip: int = 0
take: int = 0
site_id: Optional[str] = None
class CacheProfileType(str, Enum):
CLIENT = 'Client'
SERVER = 'Server'
BOTH = 'Both'
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MediaLibraryProxy:
title: Optional[str] = None
library_type: Optional[str] = None
cache_profile_type: Optional[CacheProfileType] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UncachedLibrariesProxy:
not_cached_libraries: Optional[List[MediaLibraryProxy]] = None
count_all_sites: int = 0
count_current_site: int = 0
Python GetUncachedLibraries DTOs
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-libraries HTTP/1.1 Host: www.asg.com.au Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"NotCachedLibraries":[{"Title":"String","LibraryType":"String","CacheProfileType":"Client"}],"CountAllSites":0,"CountCurrentSite":0}