Nephila RiskStore

<back to all web services

GetEventSourcePerspectiveRequest

General
Requires Authentication
The following routes are available for this service:
GET/api/riskstore/eventsource-perspectiveGet event source and their perspectives, used by the Excel Add-On
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetEventSourcePerspectiveRequest : IGet
{
    /**
    * Flag to indicate if to return only active perspectives (false) or all (true)
    */
    @ApiMember(DataType="boolean", Description="Flag to indicate if to return only active perspectives (false) or all (true)", IsRequired=true)
    open var includeInactive:Boolean? = null
}

open class GetEventSourcePerspectiveResponse
{
    open var eventSourcePerspectives:ArrayList<EventSourcePerspective>? = null
    open var responseStatus:ResponseStatus? = null
}

open class EventSourcePerspective
{
    open var eventSourceId:Int? = null
    open var eventSourceSystem:String? = null
    open var eventSourceVersion:String? = null
    open var perspectiveId:Int? = null
    open var perspectiveName:String? = null
    open var isActive:Boolean? = null
}

Kotlin GetEventSourcePerspectiveRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + 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"}}}