| POST GET HEAD | /SurveyWebhook/Mandrill |
|---|
import 'package:servicestack/servicestack.dart';
class SurveyMandrillWebhookResult implements IConvertible
{
int? received;
int? applied;
int? unmatched;
int? statusCode;
String? message;
SurveyMandrillWebhookResult({this.received,this.applied,this.unmatched,this.statusCode,this.message});
SurveyMandrillWebhookResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
received = json['received'];
applied = json['applied'];
unmatched = json['unmatched'];
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'received': received,
'applied': applied,
'unmatched': unmatched,
'statusCode': statusCode,
'message': message
};
getTypeName() => "SurveyMandrillWebhookResult";
TypeContext? context = _ctx;
}
class SurveyMandrillWebhookRequest implements IConvertible
{
String? mandrill_events;
SurveyMandrillWebhookRequest({this.mandrill_events});
SurveyMandrillWebhookRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
mandrill_events = json['mandrill_events'];
return this;
}
Map<String, dynamic> toJson() => {
'mandrill_events': mandrill_events
};
getTypeName() => "SurveyMandrillWebhookRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'SurveyMandrillWebhookResult': TypeInfo(TypeOf.Class, create:() => SurveyMandrillWebhookResult()),
'SurveyMandrillWebhookRequest': TypeInfo(TypeOf.Class, create:() => SurveyMandrillWebhookRequest()),
});
Dart SurveyMandrillWebhookRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /SurveyWebhook/Mandrill HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"mandrill_events":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"received":0,"applied":0,"unmatched":0,"statusCode":0,"message":"String"}