| POST | /api/riskstore/industryloss/ingest | Ingest Industry Loss Request | Ingest 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 .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"eventSourceId":0,"name":"String","perspectiveIds":[0],"container":"String","blobName":"String","sourceSystem":"String"}