PUT | /newsletters/retry | Retry Pending Newsletters |
---|
import 'package:servicestack/servicestack.dart';
class RetryPendingNewslettersResponse implements IConvertible
{
String? ResentCount;
ResponseStatus? ResponseStatus;
RetryPendingNewslettersResponse({this.ResentCount,this.ResponseStatus});
RetryPendingNewslettersResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResentCount = json['ResentCount'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResentCount': ResentCount,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "RetryPendingNewslettersResponse";
TypeContext? context = _ctx;
}
class RetryPendingNewsletters extends RetryPendingNewslettersResponse implements IConvertible
{
RetryPendingNewsletters();
RetryPendingNewsletters.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "RetryPendingNewsletters";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
'RetryPendingNewslettersResponse': TypeInfo(TypeOf.Class, create:() => RetryPendingNewslettersResponse()),
'RetryPendingNewsletters': TypeInfo(TypeOf.Class, create:() => RetryPendingNewsletters()),
});
Dart RetryPendingNewsletters DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /newsletters/retry HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ResentCount: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { }