Nephila RiskStore

<back to all web services

IngestIndustryLossRequest

General
Requires Authentication
The following routes are available for this service:
POST/api/riskstore/industryloss/ingestIngest Industry Loss RequestIngest Industry Loss Request
import 'package:servicestack/servicestack.dart';

class IngestIndustryLossRequest implements IPost, IConvertible
{
    // @ApiMember(IsRequired=true)
    int? eventSourceId;

    // @ApiMember(IsRequired=true)
    String? name;

    // @ApiMember(IsRequired=true)
    List<int>? perspectiveIds = [];

    // @ApiMember(IsRequired=true)
    String? container;

    // @ApiMember(IsRequired=true)
    String? blobName;

    // @ApiMember(IsRequired=true)
    String? sourceSystem;

    IngestIndustryLossRequest({this.eventSourceId,this.name,this.perspectiveIds,this.container,this.blobName,this.sourceSystem});
    IngestIndustryLossRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eventSourceId = json['eventSourceId'];
        name = json['name'];
        perspectiveIds = JsonConverters.fromJson(json['perspectiveIds'],'List<int>',context!);
        container = json['container'];
        blobName = json['blobName'];
        sourceSystem = json['sourceSystem'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eventSourceId': eventSourceId,
        'name': name,
        'perspectiveIds': JsonConverters.toJson(perspectiveIds,'List<int>',context!),
        'container': container,
        'blobName': blobName,
        'sourceSystem': sourceSystem
    };

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

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

Dart IngestIndustryLossRequest 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.

POST /api/riskstore/industryloss/ingest HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"eventSourceId":0,"name":"String","perspectiveIds":[0],"container":"String","blobName":"String","sourceSystem":"String"}