Nephila RiskStore

<back to all web services

EventSetYltRequest

General
Requires Authentication
Requires any of the roles:Riskstore.Write, Riskstore.Admin
The following routes are available for this service:
GET/api/riskstore/eventset/yltGet Event Set YLT
import 'package:servicestack/servicestack.dart';

class EventSetYltRequest implements IGet, IConvertible
{
    int? eventSetId;
    int? metaRiskId;

    EventSetYltRequest({this.eventSetId,this.metaRiskId});
    EventSetYltRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eventSetId = json['eventSetId'];
        metaRiskId = json['metaRiskId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eventSetId': eventSetId,
        'metaRiskId': metaRiskId
    };

    getTypeName() => "EventSetYltRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
    'EventSetYltRequest': TypeInfo(TypeOf.Class, create:() => EventSetYltRequest()),
});

Dart EventSetYltRequest 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/riskstore/eventset/ylt HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"__type":"ServiceStack.ResponseError, ServiceStack.Interfaces","errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}]