| GET | /api/riskstore/eventsource-perspective | Get event source and their perspectives, used by the Excel Add-On |
|---|
"use strict";
export class EventSourcePerspective {
/** @param {{eventSourceId?:number,eventSourceSystem?:string,eventSourceVersion?:string,perspectiveId?:number,perspectiveName?:string,isActive?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
eventSourceId;
/** @type {string} */
eventSourceSystem;
/** @type {string} */
eventSourceVersion;
/** @type {number} */
perspectiveId;
/** @type {string} */
perspectiveName;
/** @type {boolean} */
isActive;
}
export class GetEventSourcePerspectiveResponse {
/** @param {{eventSourcePerspectives?:EventSourcePerspective[],responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {EventSourcePerspective[]} */
eventSourcePerspectives;
/** @type {ResponseStatus} */
responseStatus;
}
export class GetEventSourcePerspectiveRequest {
/** @param {{includeInactive?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {boolean}
* @description Flag to indicate if to return only active perspectives (false) or all (true) */
includeInactive;
}
JavaScript 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"}}}