| GET | /workflow-instance/{DocumentId}/delete-request |
|---|
import 'package:servicestack/servicestack.dart';
class WorkflowDeleteRequestDetail implements IConvertible
{
int? id;
int? documentId;
int? requestedBy;
String? requestedByName;
int? approverId;
String? approverName;
int? status;
String? reason;
String? comment;
DateTime? createdAt;
DateTime? actionAt;
WorkflowDeleteRequestDetail({this.id,this.documentId,this.requestedBy,this.requestedByName,this.approverId,this.approverName,this.status,this.reason,this.comment,this.createdAt,this.actionAt});
WorkflowDeleteRequestDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
documentId = json['documentId'];
requestedBy = json['requestedBy'];
requestedByName = json['requestedByName'];
approverId = json['approverId'];
approverName = json['approverName'];
status = json['status'];
reason = json['reason'];
comment = json['comment'];
createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
actionAt = JsonConverters.fromJson(json['actionAt'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'documentId': documentId,
'requestedBy': requestedBy,
'requestedByName': requestedByName,
'approverId': approverId,
'approverName': approverName,
'status': status,
'reason': reason,
'comment': comment,
'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
'actionAt': JsonConverters.toJson(actionAt,'DateTime',context!)
};
getTypeName() => "WorkflowDeleteRequestDetail";
TypeContext? context = _ctx;
}
class GetWorkflowDeleteRequest implements IConvertible
{
int? documentId;
GetWorkflowDeleteRequest({this.documentId});
GetWorkflowDeleteRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
documentId = json['documentId'];
return this;
}
Map<String, dynamic> toJson() => {
'documentId': documentId
};
getTypeName() => "GetWorkflowDeleteRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
'WorkflowDeleteRequestDetail': TypeInfo(TypeOf.Class, create:() => WorkflowDeleteRequestDetail()),
'GetWorkflowDeleteRequest': TypeInfo(TypeOf.Class, create:() => GetWorkflowDeleteRequest()),
});
Dart GetWorkflowDeleteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /workflow-instance/{DocumentId}/delete-request HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":0,"documentId":0,"requestedBy":0,"requestedByName":"String","approverId":0,"approverName":"String","status":0,"reason":"String","comment":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","actionAt":"0001-01-01T00:00:00.0000000+07:06"}