| POST | /procurement/batch/{Id}/notify |
|---|
import 'package:servicestack/servicestack.dart';
class NotifyProcurementBatchResponse implements IConvertible
{
int? code;
String? message;
int? sentCount;
NotifyProcurementBatchResponse({this.code,this.message,this.sentCount});
NotifyProcurementBatchResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
sentCount = json['sentCount'];
return this;
}
Map<String, dynamic> toJson() => {
'code': code,
'message': message,
'sentCount': sentCount
};
getTypeName() => "NotifyProcurementBatchResponse";
TypeContext? context = _ctx;
}
class NotifyProcurementBatchRequest implements IConvertible
{
int? id;
String? targetType;
NotifyProcurementBatchRequest({this.id,this.targetType});
NotifyProcurementBatchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
targetType = json['targetType'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'targetType': targetType
};
getTypeName() => "NotifyProcurementBatchRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
'NotifyProcurementBatchResponse': TypeInfo(TypeOf.Class, create:() => NotifyProcurementBatchResponse()),
'NotifyProcurementBatchRequest': TypeInfo(TypeOf.Class, create:() => NotifyProcurementBatchRequest()),
});
Dart NotifyProcurementBatchRequest 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.
POST /procurement/batch/{Id}/notify HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":0,"targetType":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"code":0,"message":"String","sentCount":0}