| POST | /document-number/ensure |
|---|
import 'package:servicestack/servicestack.dart';
class EnsureDocumentNumberResponse implements IConvertible
{
int? code;
String? message;
String? value;
EnsureDocumentNumberResponse({this.code,this.message,this.value});
EnsureDocumentNumberResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
value = json['value'];
return this;
}
Map<String, dynamic> toJson() => {
'code': code,
'message': message,
'value': value
};
getTypeName() => "EnsureDocumentNumberResponse";
TypeContext? context = _ctx;
}
class EnsureDocumentNumberRequest implements IConvertible
{
int? workflowId;
String? labelKey;
EnsureDocumentNumberRequest({this.workflowId,this.labelKey});
EnsureDocumentNumberRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
workflowId = json['workflowId'];
labelKey = json['labelKey'];
return this;
}
Map<String, dynamic> toJson() => {
'workflowId': workflowId,
'labelKey': labelKey
};
getTypeName() => "EnsureDocumentNumberRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
'EnsureDocumentNumberResponse': TypeInfo(TypeOf.Class, create:() => EnsureDocumentNumberResponse()),
'EnsureDocumentNumberRequest': TypeInfo(TypeOf.Class, create:() => EnsureDocumentNumberRequest()),
});
Dart EnsureDocumentNumberRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /document-number/ensure HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"workflowId":0,"labelKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"code":0,"message":"String","value":"String"}