| Requires any of the roles: | Riskstore.Write, Riskstore.Admin |
| GET | /api/riskstore/eventset/ylt | Get 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfEventSetYltResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
<EventSetYltResponse>
<ErrorCode xmlns="http://schemas.servicestack.net/types">String</ErrorCode>
<Message xmlns="http://schemas.servicestack.net/types">String</Message>
<StackTrace xmlns="http://schemas.servicestack.net/types">String</StackTrace>
<Errors xmlns="http://schemas.servicestack.net/types">
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</Meta>
<Ylt xmlns:d3p1="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Types" i:nil="true" />
</EventSetYltResponse>
</ArrayOfEventSetYltResponse>