| GET | /api/riskstore/eventsource-perspective | Get event source and their perspectives, used by the Excel Add-On |
|---|
namespace Nephila.RiskStore.ServiceModel.Requests
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type EventSourcePerspective() =
member val EventSourceId:Int32 = new Int32() with get,set
member val EventSourceSystem:String = null with get,set
member val EventSourceVersion:String = null with get,set
member val PerspectiveId:Int32 = new Int32() with get,set
member val PerspectiveName:String = null with get,set
member val IsActive:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type GetEventSourcePerspectiveResponse() =
member val EventSourcePerspectives:ResizeArray<EventSourcePerspective> = null with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type GetEventSourcePerspectiveRequest() =
interface IGet
///<summary>
///Flag to indicate if to return only active perspectives (false) or all (true)
///</summary>
[<ApiMember(DataType="boolean", Description="Flag to indicate if to return only active perspectives (false) or all (true)", IsRequired=true)>]
member val IncludeInactive:Boolean = new Boolean() with get,set
F# GetEventSourcePerspectiveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/riskstore/eventsource-perspective HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"eventSourcePerspectives":[{"eventSourceId":0,"eventSourceSystem":"String","eventSourceVersion":"String","perspectiveId":0,"perspectiveName":"String","isActive":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"}}}