POST | /RestApi/cache//add |
---|
namespace Telerik.Sitefinity.Web.OutputCache.Services.Model
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type AddExternalCacheRequest() =
member val Url:String = null with get,set
member val CacheKey:String = null with get,set
member val Keys:String[] = [||] with get,set
[<AllowNullLiteral>]
type AddExternalCacheResponse() =
member val Result:Boolean = new Boolean() with get,set
member val Message:String = null with get,set
F# AddExternalCacheRequest DTOs
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.
POST /RestApi/cache//add HTTP/1.1
Host: www.asg.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Url: String,
CacheKey: String,
Keys:
[
String
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Result: False, Message: String }