| Requires any of the roles: | Riskstore.Read, Riskstore.Write, Riskstore.Admin |
| GET | /api/riskstore/cache/status | Check the cache status |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Nephila.RiskStore.ServiceModel.Requests;
namespace Nephila.RiskStore.ServiceModel.Requests
{
public partial class GetCacheStatusRequest
: IGet
{
}
public partial class GetCacheStatusRespone
{
public virtual bool Linking { get; set; }
public virtual bool EventSource { get; set; }
public virtual bool EventSourcePerspective { get; set; }
public virtual bool MetaRisk { get; set; }
public virtual bool EventLosses { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
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 /api/riskstore/cache/status HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"linking":false,"eventSource":false,"eventSourcePerspective":false,"metaRisk":false,"eventLosses":false,"responseStatus":{"__type":"ServiceStack.ResponseStatus, ServiceStack.Interfaces","errorCode":"String","message":"String","stackTrace":"String","errors":[{"__type":"ServiceStack.ResponseError, ServiceStack.Interfaces","errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}