| Required role: | superadmin |
| POST | /voss/errorlog/{Id}/replay | Re-enqueue the Voss operation captured by a logged failure |
|---|
import 'package:servicestack/servicestack.dart';
class VossErrorLogQueryResponse implements IConvertible
{
int Id = 0;
String? CompanyId;
int TypeId = 0;
String TypeName = "";
int Source = 0;
String SourceName = "";
String Comments = "";
String MetaData = "";
String QueueName = "";
String MessageType = "";
int? DeliveryCount;
String DeadLetterReason = "";
bool Resolved;
DateTime CreatedDate = DateTime(0);
VossErrorLogQueryResponse({this.Id,this.CompanyId,this.TypeId,this.TypeName,this.Source,this.SourceName,this.Comments,this.MetaData,this.QueueName,this.MessageType,this.DeliveryCount,this.DeadLetterReason,this.Resolved,this.CreatedDate});
VossErrorLogQueryResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
CompanyId = json['CompanyId'];
TypeId = json['TypeId'];
TypeName = json['TypeName'];
Source = json['Source'];
SourceName = json['SourceName'];
Comments = json['Comments'];
MetaData = json['MetaData'];
QueueName = json['QueueName'];
MessageType = json['MessageType'];
DeliveryCount = json['DeliveryCount'];
DeadLetterReason = json['DeadLetterReason'];
Resolved = json['Resolved'];
CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'CompanyId': CompanyId,
'TypeId': TypeId,
'TypeName': TypeName,
'Source': Source,
'SourceName': SourceName,
'Comments': Comments,
'MetaData': MetaData,
'QueueName': QueueName,
'MessageType': MessageType,
'DeliveryCount': DeliveryCount,
'DeadLetterReason': DeadLetterReason,
'Resolved': Resolved,
'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!)
};
getTypeName() => "VossErrorLogQueryResponse";
TypeContext? context = _ctx;
}
// @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
class ReplayVossErrorLog implements IConvertible
{
/**
* VossErrorLog id to replay
*/
// @ApiMember(Description="VossErrorLog id to replay", IsRequired=true)
int Id = 0;
ReplayVossErrorLog({this.Id});
ReplayVossErrorLog.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id
};
getTypeName() => "ReplayVossErrorLog";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api_staging.bookmore.com', types: <String, TypeInfo> {
'VossErrorLogQueryResponse': TypeInfo(TypeOf.Class, create:() => VossErrorLogQueryResponse()),
'ReplayVossErrorLog': TypeInfo(TypeOf.Class, create:() => ReplayVossErrorLog()),
});
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 /voss/errorlog/{Id}/replay HTTP/1.1
Host: api-staging.bookmore.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"CompanyId":"00000000-0000-0000-0000-000000000000","TypeId":0,"TypeName":"String","Source":0,"SourceName":"String","Comments":"String","MetaData":"String","QueueName":"String","MessageType":"String","DeliveryCount":0,"DeadLetterReason":"String","Resolved":false}