| GET | /api/riskstore/eventsource-perspective | Get event source and their perspectives, used by the Excel Add-On |
|---|
export class EventSourcePerspective
{
public eventSourceId: number;
public eventSourceSystem: string;
public eventSourceVersion: string;
public perspectiveId: number;
public perspectiveName: string;
public isActive: boolean;
public constructor(init?: Partial<EventSourcePerspective>) { (Object as any).assign(this, init); }
}
export class GetEventSourcePerspectiveResponse
{
public eventSourcePerspectives: EventSourcePerspective[];
public responseStatus: ResponseStatus;
public constructor(init?: Partial<GetEventSourcePerspectiveResponse>) { (Object as any).assign(this, init); }
}
export class GetEventSourcePerspectiveRequest implements IGet
{
/** @description 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)
public includeInactive: boolean;
public constructor(init?: Partial<GetEventSourcePerspectiveRequest>) { (Object as any).assign(this, init); }
}
TypeScript GetEventSourcePerspectiveRequest DTOs
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/eventsource-perspective HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}