| POST,OPTIONS | /v1/engine/pump |
|---|
import 'package:servicestack/servicestack.dart';
class EnginePumpResponse implements IConvertible
{
int? EventsMatched;
int? RunsExecuted;
ResponseStatus? ResponseStatus;
EnginePumpResponse({this.EventsMatched,this.RunsExecuted,this.ResponseStatus});
EnginePumpResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
EventsMatched = json['EventsMatched'];
RunsExecuted = json['RunsExecuted'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'EventsMatched': EventsMatched,
'RunsExecuted': RunsExecuted,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "EnginePumpResponse";
TypeContext? context = _ctx;
}
class EnginePumpRequest implements IConvertible
{
String? Key;
int? MaxItems;
EnginePumpRequest({this.Key,this.MaxItems});
EnginePumpRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Key = json['Key'];
MaxItems = json['MaxItems'];
return this;
}
Map<String, dynamic> toJson() => {
'Key': Key,
'MaxItems': MaxItems
};
getTypeName() => "EnginePumpRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'EnginePumpResponse': TypeInfo(TypeOf.Class, create:() => EnginePumpResponse()),
'EnginePumpRequest': TypeInfo(TypeOf.Class, create:() => EnginePumpRequest()),
});
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/engine/pump HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Key":"String","MaxItems":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"EventsMatched":0,"RunsExecuted":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}