| GET | /api/riskstore/eventsource-perspective | Get event source and their perspectives, used by the Excel Add-On |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nephila.RiskStore.ServiceModel.Requests
Imports Nephila.RiskStore.ServiceModel.Types
Namespace Global
Namespace Nephila.RiskStore.ServiceModel.Requests
Public Partial Class GetEventSourcePerspectiveRequest
Implements 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)>
Public Overridable Property IncludeInactive As Boolean
End Class
Public Partial Class GetEventSourcePerspectiveResponse
Public Overridable Property EventSourcePerspectives As List(Of EventSourcePerspective)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
Namespace Nephila.RiskStore.ServiceModel.Types
Public Partial Class EventSourcePerspective
Public Overridable Property EventSourceId As Integer
Public Overridable Property EventSourceSystem As String
Public Overridable Property EventSourceVersion As String
Public Overridable Property PerspectiveId As Integer
Public Overridable Property PerspectiveName As String
Public Overridable Property IsActive As Boolean
End Class
End Namespace
End Namespace
VB.NET GetEventSourcePerspectiveRequest DTOs
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 /api/riskstore/eventsource-perspective HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}